mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 21:31:12 +08:00
19 lines
264 B
TypeScript
19 lines
264 B
TypeScript
import guid = require('guid');
|
|
|
|
// $ExpectType object
|
|
guid.create();
|
|
|
|
// $ExpectType string
|
|
guid.raw();
|
|
|
|
const newRawGuid = guid.raw();
|
|
|
|
// $ExpectType boolean
|
|
guid.isGuid(newRawGuid);
|
|
|
|
// $ExpectType string
|
|
guid.EMPTY;
|
|
|
|
// $ExpectType object
|
|
guid(guid.create());
|