mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
11 lines
204 B
TypeScript
11 lines
204 B
TypeScript
/// <reference path="./username.d.ts" />
|
|
|
|
import username = require("username");
|
|
|
|
username(function(err, username) {
|
|
err === new Error();
|
|
username === "string";
|
|
});
|
|
|
|
username.sync() === "string";
|