Installation
npm install --save @types/uniqid
Summary
This package contains type definitions for uniqid (https://github.com/adamhalasz/uniqid).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uniqid.
index.d.ts
// Commmon function signature
declare function f(prefix?: string, suffix?: string): string;
// let x -> Workaround for ES6 imports
// Combined type because of assigning to function object in original module
declare let x: typeof f & { process: typeof f } & { time: typeof f };
export = x;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by idchlife, and onomatopoetry.