Files
DefinitelyTyped/types/uid-safe/uid-safe-tests.ts
2017-03-24 14:27:52 -07:00

13 lines
227 B
TypeScript

import * as uid from '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);