From da3e6dcb13c5a4eb0f09005c709ea7c8f62fc847 Mon Sep 17 00:00:00 2001 From: Klaus Reimer Date: Mon, 28 Dec 2015 11:09:44 +0100 Subject: [PATCH] Add typings for NodeJS library "fullname" --- fullname/fullname-tests.ts | 5 +++++ fullname/fullname.d.ts | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 fullname/fullname-tests.ts create mode 100644 fullname/fullname.d.ts diff --git a/fullname/fullname-tests.ts b/fullname/fullname-tests.ts new file mode 100644 index 0000000000..a037f2634e --- /dev/null +++ b/fullname/fullname-tests.ts @@ -0,0 +1,5 @@ +/// + +import fullname = require("fullname"); + +fullname().then(function(name) { name === "string"; }); diff --git a/fullname/fullname.d.ts b/fullname/fullname.d.ts new file mode 100644 index 0000000000..a1d44f1672 --- /dev/null +++ b/fullname/fullname.d.ts @@ -0,0 +1,11 @@ +// Type definitions for fullname v2.1.0 +// Project: https://www.npmjs.com/package/fullname +// Definitions by: Klaus Reimer +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare module "fullname" { + function fullname(): Promise; + export = fullname; +}