DefinitelyTyped/types/username/username-tests.ts
Akos Krivachy ae52dc806c Update @types/username typings from 1.0.1 to 3.0.0 (#23112)
The API has been promisifyed, instead of using a callback based one
2018-01-23 10:12:15 -08:00

13 lines
206 B
TypeScript

import username = require("username");
username()
.then((username) => {
username === "string";
})
.catch((err) => {
err === new Error();
});
username.sync() === "string";