Installation
npm install --save @types/ng-stomp
Summary
This package contains type definitions for ng-stomp (https://github.com/beevelop/ng-stomp).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ng-stomp.
index.d.ts
/// <reference types="angular" />
interface ngStomp {
sock: any;
stomp: any;
debug: any;
off: any;
setDebug(callback: Function): void;
connect(endpoint: string, headers?: ngStomp.Headers): angular.IHttpPromise<any>;
disconnect(callback: () => void): angular.IHttpPromise<any>;
subscribe(
destination: string,
callback: (payload: string, headers: ngStomp.Headers, res: Function) => void,
headers?: ngStomp.Headers,
scope?: any,
): any;
unsubscribe(): any;
send(destination: string, body: any, headers: ngStomp.Headers): any;
}
declare namespace ngStomp {
interface Headers {
[key: string]: any;
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/angular
Credits
These definitions were written by Lukasz Potapczuk.