UNPKG

@types/uid-safe

Version:
31 lines (23 loc) 879 B
# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uid-safe/index.d.ts) ````ts 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: Tue, 07 Nov 2023 15:11:36 GMT * Dependencies: none # Credits These definitions were written by [Joshua DeVinney](https://github.com/geoffreak).