mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add typings for NodeJS library "fullname"
This commit is contained in:
parent
dc9dabe74a
commit
da3e6dcb13
5
fullname/fullname-tests.ts
Normal file
5
fullname/fullname-tests.ts
Normal file
@ -0,0 +1,5 @@
|
||||
/// <reference path="./fullname.d.ts" />
|
||||
|
||||
import fullname = require("fullname");
|
||||
|
||||
fullname().then(function(name) { name === "string"; });
|
||||
11
fullname/fullname.d.ts
vendored
Normal file
11
fullname/fullname.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
// Type definitions for fullname v2.1.0
|
||||
// Project: https://www.npmjs.com/package/fullname
|
||||
// Definitions by: Klaus Reimer <https://github.com/kayahr/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference path="../es6-promise/es6-promise.d.ts" />
|
||||
|
||||
declare module "fullname" {
|
||||
function fullname(): Promise<string>;
|
||||
export = fullname;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user