UNPKG

540 BTypeScriptView Raw
1// Type definitions for shortid
2// Project: https://github.com/dylang/shortid
3// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>, Danny Arnold <https://github.com/despairblue>
4// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
6declare const shortid: ShortId
7
8export = shortid
9
10interface ShortId {
11 (): string,
12 generate: () => string,
13 characters: (string: string) => string,
14 isValid: (id: any) => boolean,
15 worker: (integer: number) => void,
16 seed: (float: number) => void,
17}