Skip to content

Instantly share code, notes, and snippets.

@Macadoshis
Created September 18, 2019 10:56
Show Gist options
  • Save Macadoshis/2cfb3496d6bca3b57abe3d4e9f2930bf to your computer and use it in GitHub Desktop.
Save Macadoshis/2cfb3496d6bca3b57abe3d4e9f2930bf to your computer and use it in GitHub Desktop.
export interface HubProxyCreationResponse {
on(event: string, callback: (serverMessage: string) => void);
}
export interface HubConnectionRepsonse {
createHubProxy(name: string): HubProxyCreationResponse;
}
/**
* jQuery custom plugins
*/
interface JQueryStatic {
/**
* {@link 'bootstrap-notify'}
*
* @param {Object} content
* @param {Object} params
* @returns {any}
*/
notify(content: Object, params: Object): any;
/**
* Creates server push connection to given {@param endPoint}
*
* @param endPoint
*/
hubConnection(endPoint: string): HubConnectionRepsonse;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment