UNPKG

271 BTypeScriptView Raw
1declare const shortid: ShortId;
2
3export = shortid;
4
5interface ShortId {
6 (): string;
7 generate: () => string;
8 characters: (string: string) => string;
9 isValid: (id: any) => boolean;
10 worker: (integer: number) => void;
11 seed: (float: number) => void;
12}