mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-19 16:49:45 +08:00
Made the SignalR definition 0.9 compatible
Changed the return type of HubConnection.received to match SignalR.received The 'on' callback can take a variable number of arguments
This commit is contained in:
4
signalr/signalr.d.ts
vendored
4
signalr/signalr.d.ts
vendored
@@ -65,7 +65,7 @@ interface HubProxy {
|
||||
(connection: HubConnection, hubName: string): HubProxy;
|
||||
init(connection: HubConnection, hubName: string): void;
|
||||
hasSubscriptions(): bool;
|
||||
on(eventName: string, callback: (msg) => void ): HubProxy;
|
||||
on(eventName: string, callback: (...msg) => void ): HubProxy;
|
||||
off(eventName: string, callback: (msg) => void ): HubProxy;
|
||||
invoke(methodName: string, ...args: any[]): JQueryDeferred;
|
||||
}
|
||||
@@ -79,7 +79,7 @@ interface HubConnectionSettings {
|
||||
interface HubConnection extends SignalR {
|
||||
//(url?: string, queryString?: any, logging?: bool): HubConnection;
|
||||
proxies;
|
||||
received(callback: (data: { Id; Method; Hub; State; Args; }) => void ): void;
|
||||
received(callback: (data: { Id; Method; Hub; State; Args; }) => void ): HubConnection;
|
||||
createHubProxy(hubName: string): HubProxy;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user