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
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, and Danny Arnold.