File tree Expand file tree Collapse file tree 4 files changed +121
-3
lines changed Expand file tree Collapse file tree 4 files changed +121
-3
lines changed Original file line number Diff line number Diff line change 3737 "@babel/plugin-transform-numeric-separator" : " ^7.25.9" ,
3838 "@babel/plugin-transform-object-assign" : " ^7.25.9" ,
3939 "@babel/preset-env" : " ^7.26.7" ,
40+ "@types/jquery" : " ^3.5.32" ,
4041 "@types/node" : " ^20.0.0" ,
4142 "@typescript-eslint/eslint-plugin" : " ^8.21.0" ,
4243 "@typescript-eslint/parser" : " ^8.21.0" ,
44+ "axios" : " ^1.9.0" ,
4345 "eslint" : " ^9.0.0" ,
4446 "prettier" : " ^3.5.3" ,
4547 "pusher-js" : " ^8.0" ,
4850 "typescript" : " ^5.7.0" ,
4951 "vite" : " ^5.0.0" ,
5052 "vite-plugin-dts" : " ^3.0.0" ,
51- "vitest" : " ^3.1.2"
53+ "vitest" : " ^3.1.2" ,
54+ "vue" : " ^3.5.13"
5255 },
5356 "peerDependencies" : {
5457 "pusher-js" : " *" ,
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export class PusherConnector<
4242 */
4343 channels : Record < string , AnyPusherChannel > = { } ;
4444
45- options : PusherOptions < TBroadcastDriver > ;
45+ declare options : PusherOptions < TBroadcastDriver > ;
4646
4747 /**
4848 * Create a fresh Pusher connection.
Original file line number Diff line number Diff line change 1+ import type { JQueryStatic } from "@types/jquery" ;
2+ import type { AxiosStatic } from "axios" ;
13import type Pusher from "pusher-js" ;
24import type { io } from "socket.io-client" ;
5+ import type { VueElementConstructor } from "vue" ;
36
47declare global {
58 interface Window {
@@ -8,7 +11,16 @@ declare global {
811 } ;
912
1013 io ?: typeof io ;
11-
1214 Pusher ?: typeof Pusher ;
15+
16+ Vue ?: VueElementConstructor ;
17+ axios ?: AxiosStatic ;
18+ jQuery ?: JQueryStatic ;
19+ Turbo ?: object ;
1320 }
21+
22+ const Vue : VueElementConstructor | undefined ;
23+ const axios : AxiosStatic | undefined ;
24+ const jQuery : JQueryStatic | undefined ;
25+ const Turbo : object | undefined ;
1426}
You can’t perform that action at this time.
0 commit comments