File: index.d.ts

package info (click to toggle)
node-uid-safe 2.1.5%2B~2.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 128 kB
  • sloc: javascript: 111; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 505 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Type definitions for uid-safe v2.1
// Project: https://github.com/crypto-utils/uid-safe
// Definitions by: Joshua DeVinney <https://github.com/geoffreak>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare namespace UID {

    export interface Generate {

        (byteLength: number, callback: (err: any, str: string) => any): void;
        (byteLength: number): Promise<string>;

        sync(byteLength: number): string;
    }
}

declare var UID: UID.Generate;
export = UID;