mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
13 lines
227 B
TypeScript
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);
|