DefinitelyTyped/types/uid2/index.d.ts
Levi Bostian 7619b2d6f5 Add typings for npm module uid2 (#36207)
* 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
2019-07-18 17:45:07 -07:00

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;