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+
13import type { Channel , PresenceChannel } from "../channel" ;
24import type { BroadcastDriver , EchoOptions } from "../echo" ;
35
@@ -90,11 +92,7 @@ export abstract class Connector<
9092 protected csrfToken ( ) : null | string {
9193 let selector ;
9294
93- if (
94- typeof window !== "undefined" &&
95- typeof window . Laravel !== "undefined" &&
96- window . Laravel . csrfToken
97- ) {
95+ if ( window ?. Laravel ?. csrfToken ) {
9896 return window . Laravel . csrfToken ;
9997 }
10098
Original file line number Diff line number Diff line change 1818 "emitDecoratorMetadata" : true ,
1919 "esModuleInterop" : true ,
2020 "strict" : true ,
21- "typeRoots" : [" node_modules/@types" ],
21+ "typeRoots" : [" node_modules/@types" , " ./typings " ],
2222 "lib" : [" dom" , " es2020" ]
2323 },
2424 "include" : [" ./typings/**/*.ts" , " ./src/**/*.ts" ],
Original file line number Diff line number Diff line change 1- import type { io } from "socket.io-client" ;
21import type Pusher from "pusher-js" ;
3-
4- export { } ;
2+ import type { io } from "socket.io-client" ;
53
64declare global {
75 interface Window {
You can’t perform that action at this time.
0 commit comments