mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add typings for npm module uid2 * Add callback parameter to uid typing * Refactor uid2 typings to different style * Enable dt-header lint rule @types/uid2 * Fix tests
10 lines
372 B
TypeScript
10 lines
372 B
TypeScript
// Type definitions for uid2 0.0
|
|
// Project: https://github.com/coreh/uid2
|
|
// Definitions by: Levi Bostian <https://github.com/levibostian>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare function uid2(length: number): string;
|
|
declare function uid2(length: number, callback: (err: Error | null, result?: string) => void): void;
|
|
|
|
export = uid2;
|