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

2.1.3 • Public • Published

Installation

npm install --save @types/uid-safe

Summary

This package contains type definitions for uid-safe (https://github.com/crypto-utils/uid-safe).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uid-safe.

index.d.ts

// 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;

Additional Details

  • Last updated: Wed, 30 Aug 2023 19:35:29 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Joshua DeVinney.

Keywords

none

Install

DownloadsWeekly Downloads

27,180

Version

2.1.3

License

MIT

Unpacked Size

3.57 kB

Total Files

5

Last publish

Collaborators

  • types