@types/ng-stomp
TypeScript icon, indicating that this package has built-in type declarations

0.2.5 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/ng-stomp

Weekly Downloads

20

Version

0.2.5

License

MIT

Unpacked Size

4.02 kB

Total Files

5

Last publish

Collaborators

  • types