npm.io
0.2.5 • Published 2 years ago

@types/ng-stomp

Licence
MIT
Version
0.2.5
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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 0939 GMT
  • Dependencies: @types/angular

Credits

These definitions were written by Lukasz Potapczuk.