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
9 lines
184 B
TypeScript
9 lines
184 B
TypeScript
import uid2 = require('uid2');
|
|
|
|
uid2(20); // $ExpectType string
|
|
|
|
uid2(20, (error, result) => {
|
|
error; // $ExpectType Error | null
|
|
result; // $ExpectType string | undefined
|
|
});
|