@types/shortid
Version:
TypeScript definitions for shortid
32 lines (24 loc) • 920 B
Markdown
# Installation
> `npm install --save @types/shortid`
# Summary
This package contains type definitions for shortid (https://github.com/dylang/shortid).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/shortid.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/shortid/index.d.ts)
````ts
declare const shortid: ShortId;
export = shortid;
interface ShortId {
(): string;
generate: () => string;
characters: (string: string) => string;
isValid: (id: any) => boolean;
worker: (integer: number) => void;
seed: (float: number) => void;
}
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 15:11:36 GMT
* Dependencies: none
# Credits
These definitions were written by [Sam Saint-Pettersen](https://github.com/stpettersens), and [Danny Arnold](https://github.com/despairblue).