mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Update signalr.d.ts
HubProxy.on() and HubProxy.off() should accept the same parameters, since you unsubscribe the same method...
This commit is contained in:
Vendored
+1
-1
@@ -77,7 +77,7 @@ interface HubProxy {
|
||||
init(connection: HubConnection, hubName: string): void;
|
||||
hasSubscriptions(): boolean;
|
||||
on(eventName: string, callback: (...msg: any[]) => void ): HubProxy;
|
||||
off(eventName: string, callback: (msg: any) => void ): HubProxy;
|
||||
off(eventName: string, callback: (...msg: any[]) => void ): HubProxy;
|
||||
invoke(methodName: string, ...args: any[]): JQueryDeferred<any>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user