0.1.4 • Published 6 months ago

@types/debessmann v0.1.4

Weekly downloads
1
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for debessmann 0.1
// Project: https://github.com/fs535/debessmann#readme
// Definitions by: Vladislavs Korehovs <https://github.com/vkorehov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Thu, 08 Jul 2021 09:08:37 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Vladislavs Korehovs.

0.1.2

8 months ago

0.1.4

6 months ago

0.1.3

7 months ago

0.1.1

3 years ago

0.1.0

7 years ago