mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +08:00
13 lines
206 B
TypeScript
13 lines
206 B
TypeScript
|
|
import username = require("username");
|
|
|
|
username()
|
|
.then((username) => {
|
|
username === "string";
|
|
})
|
|
.catch((err) => {
|
|
err === new Error();
|
|
});
|
|
|
|
username.sync() === "string";
|