mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
14 lines
257 B
TypeScript
14 lines
257 B
TypeScript
import * as uuidv4 from 'uuidv4'; // uuidv4 is () => string
|
|
|
|
// $ExpectType string
|
|
uuidv4();
|
|
|
|
// $ExpectType string
|
|
uuidv4.empty();
|
|
|
|
// $ExpectType boolean
|
|
uuidv4.is('00000000-0000-0000-0000-000000000000');
|
|
|
|
// $ExpectType string
|
|
uuidv4.fromString("test");
|