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

Merge pull request #154 from Root-Core/patch-3

Update index.d.ts
This commit is contained in:
Conrad Sopala 2019-07-24 16:57:32 +02:00 committed by GitHub
commit 5321c3ed9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
types/index.d.ts vendored
View File

@ -32,11 +32,13 @@ declare module 'socketio-jwt' {
callback?: (false | number); callback?: (false | number);
secret: (string | ((request: any, decodedToken: object, callback: ISocketCallback) => void)); secret: (string | ((request: any, decodedToken: object, callback: ISocketCallback) => void));
encodedPropertyName?: string;
decodedPropertyName?: string; decodedPropertyName?: string;
auth_header_required?: boolean; auth_header_required?: boolean;
handshake?: boolean; handshake?: boolean;
required?: boolean; required?: boolean;
timeout?: number; timeout?: number;
cookie?: string;
} }
function authorize(options: IOptions/*, onConnection: Function*/): ISocketIOMiddleware; function authorize(options: IOptions/*, onConnection: Function*/): ISocketIOMiddleware;