0.1.34 • Published 7 months ago

@types/flake-idgen v0.1.34

Weekly downloads
2,181
License
MIT
Repository
github
Last release
7 months ago

Installation

npm install --save @types/flake-idgen

Summary

This package contains type definitions for flakge-idgen (https://github.com/T-PWK/flake-idgen).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/flake-idgen.

index.d.ts

// Type definitions for flakge-idgen 0.1.4
// Project: https://github.com/T-PWK/flake-idgen
// Definitions by: Yuce Tekol <http://yuce.me/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />


interface ConstructorOptions {
    datacenter?: number | undefined;
    worker?: number | undefined;
    id?: number | undefined;
    epoch?: number | undefined;
    seqMask?: number | undefined;
}

declare namespace FlakeId {}

declare class FlakeId {
    constructor(options?: ConstructorOptions);
    next(callback?: (err: Error, id: Buffer) => void): Buffer;
}
export = FlakeId;

Additional Details

  • Last updated: Thu, 08 Jul 2021 12:01:40 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Yuce Tekol.

0.1.32

8 months ago

0.1.33

7 months ago

0.1.34

7 months ago

0.1.31

3 years ago

0.1.30

7 years ago

0.1.29

8 years ago

0.1.28

8 years ago

0.1.27-alpha

8 years ago

0.1.26-alpha

8 years ago

0.1.25-alpha

8 years ago

0.1.24-alpha

8 years ago

0.1.23-alpha

8 years ago

0.1.22-alpha

8 years ago

0.1.21-alpha

8 years ago

0.1.16-alpha

8 years ago

0.1.15-alpha

8 years ago