Files
DefinitelyTyped/types/guid/guid-tests.ts
2017-10-27 09:21:06 -04:00

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());