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

0.1.34 • Public • Published

Installation

npm install --save @types/flake-idgen

Summary

This package contains type definitions for flake-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

/// <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: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Yuce Tekol.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/flake-idgen

Weekly Downloads

1,309

Version

0.1.34

License

MIT

Unpacked Size

3.39 kB

Total Files

5

Last publish

Collaborators

  • types