File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change
1
+ /// <reference types="window" />
2
+
1
3
import type { Channel , PresenceChannel } from "../channel" ;
2
4
import type { BroadcastDriver , EchoOptions } from "../echo" ;
3
5
@@ -90,11 +92,7 @@ export abstract class Connector<
90
92
protected csrfToken ( ) : null | string {
91
93
let selector ;
92
94
93
- if (
94
- typeof window !== "undefined" &&
95
- typeof window . Laravel !== "undefined" &&
96
- window . Laravel . csrfToken
97
- ) {
95
+ if ( window ?. Laravel ?. csrfToken ) {
98
96
return window . Laravel . csrfToken ;
99
97
}
100
98
Original file line number Diff line number Diff line change 18
18
"emitDecoratorMetadata" : true ,
19
19
"esModuleInterop" : true ,
20
20
"strict" : true ,
21
- "typeRoots" : [" node_modules/@types" ],
21
+ "typeRoots" : [" node_modules/@types" , " ./typings " ],
22
22
"lib" : [" dom" , " es2020" ]
23
23
},
24
24
"include" : [" ./typings/**/*.ts" , " ./src/**/*.ts" ],
Original file line number Diff line number Diff line change 1
- import type { io } from "socket.io-client" ;
2
1
import type Pusher from "pusher-js" ;
3
-
4
- export { } ;
2
+ import type { io } from "socket.io-client" ;
5
3
6
4
declare global {
7
5
interface Window {
You can’t perform that action at this time.
0 commit comments