2
1
mirror of https://github.com/Thream/socketio-jwt.git synced 2024-07-21 09:38:31 +02:00

Update index.d.ts

- Added cookie option to typings, as added in #134 by @Kaisle
This commit is contained in:
Root-Core 2019-07-24 16:48:32 +02:00 committed by GitHub
parent b180c24a4c
commit 28f9a4e409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
types/index.d.ts vendored
View File

@ -37,6 +37,7 @@ declare module 'socketio-jwt' {
handshake?: boolean;
required?: boolean;
timeout?: number;
cookie?: string;
}
function authorize(options: IOptions/*, onConnection: Function*/): ISocketIOMiddleware;