UNPKG

927 BMarkdownView Raw
1# Installation
2> `npm install --save @types/uniqid`
3
4# Summary
5This package contains type definitions for uniqid (https://github.com/adamhalasz/uniqid).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uniqid.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uniqid/index.d.ts)
10````ts
11// Commmon function signature
12declare function f(prefix?: string, suffix?: string): string;
13
14// let x -> Workaround for ES6 imports
15// Combined type because of assigning to function object in original module
16declare let x: typeof f & { process: typeof f } & { time: typeof f };
17
18export = x;
19
20````
21
22### Additional Details
23 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
24 * Dependencies: none
25
26# Credits
27These definitions were written by [idchlife](https://github.com/idchlife), and [onomatopoetry](https://github.com/onomatopoetry).
28
\No newline at end of file