@types/uniqid
Version:
TypeScript definitions for uniqid
28 lines (20 loc) • 927 B
Markdown
# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uniqid/index.d.ts)
````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](https://github.com/idchlife), and [onomatopoetry](https://github.com/onomatopoetry).