mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #2360 from pmccloghrylaing/sockjs-constructor
Update for SockJS definition to fix constructor arguments
This commit is contained in:
Vendored
+14
-7
@@ -36,10 +36,17 @@ interface SockJS extends EventTarget {
|
||||
|
||||
declare var SockJS: {
|
||||
prototype: SockJS;
|
||||
new (url: string, options?: {
|
||||
debug: boolean;
|
||||
devel: boolean;
|
||||
protocols_whitelist: string[];
|
||||
}): SockJS;
|
||||
|
||||
}
|
||||
new (url: string, _reserved: any, options?: {
|
||||
debug?: boolean;
|
||||
devel?: boolean;
|
||||
protocols_whitelist?: string[];
|
||||
server?: string;
|
||||
rtt?: number;
|
||||
rto?: number;
|
||||
info?: {
|
||||
websocket?: boolean;
|
||||
cookie_needed?: boolean;
|
||||
null_origin?: boolean;
|
||||
};
|
||||
}): SockJS;
|
||||
};
|
||||
Reference in New Issue
Block a user