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

0.1.4 • Public • Published

Installation

npm install --save @types/debessmann

Summary

This package contains type definitions for debessmann (https://github.com/fs535/debessmann#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/debessmann.

index.d.ts

export class EventId {
    time: Date;
    seq: number;
}

export class Event {
    _id: EventId;
    timestamp?: string | undefined;
    id?: string | undefined;
    payload?: any;
    headers: { [key: string]: string };
    metrics?: { [key: string]: number } | undefined;
}

export class DM {
    init(endpoint: string, authkey: string): void;
    send(data: Event): void;
}

declare global {
    interface Window {
        dm: DM;
    }
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by Vladislavs Korehovs.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/debessmann

Weekly Downloads

1

Version

0.1.4

License

MIT

Unpacked Size

3.45 kB

Total Files

5

Last publish

Collaborators

  • types