Files
DefinitelyTyped/types/uid-safe/uid-safe-tests.ts
2018-02-06 10:31:25 -08:00

13 lines
226 B
TypeScript

import uid = require('uid-safe');
uid(18, function (err, string) {
if (err) throw err
// do something with the string
});
uid(18).then(function (string) {
// do something with the string
})
var string = uid.sync(18);