From b7e48313e18038466fd3ce6355f0afcdc8cf460f Mon Sep 17 00:00:00 2001 From: philkunz Date: Sun, 21 Aug 2016 17:29:38 +0200 Subject: [PATCH] improve typings --- dist/index.d.ts | 4 +++- dist/index.js | 4 ++-- package.json | 1 + ts/index.ts | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dist/index.d.ts b/dist/index.d.ts index c2b0841..d47755d 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,3 +1,5 @@ +/// import "typings-global"; +import q = require("q"); export declare let start: (moduleNameArg?: string, loaderLengthArg?: string) => void; -export declare let stop: () => any; +export declare let stop: () => q.Promise<{}>; diff --git a/dist/index.js b/dist/index.js index 22a3168..d1d2475 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2,7 +2,7 @@ require("typings-global"); const path = require("path"); const chalk = require("chalk"); -let q = require("q"); +const q = require("q"); const childProcess = require("child_process"); let earlyChild; let doAnimation = true; @@ -49,4 +49,4 @@ exports.stop = function () { } return done.promise; }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTyxnQkFDUCxDQUFDLENBRHNCO0FBQ3ZCLE1BQU8sSUFBSSxXQUFXLE1BQU0sQ0FBQyxDQUFDO0FBQzlCLE1BQU8sS0FBSyxXQUFXLE9BQU8sQ0FBQyxDQUFDO0FBQ2hDLElBQUksQ0FBQyxHQUFHLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUVyQixNQUFPLFlBQVksV0FBVyxlQUFlLENBQUMsQ0FBQztBQUMvQyxJQUFJLFVBQVUsQ0FBQztBQUVmLElBQUksV0FBVyxHQUFZLElBQUksQ0FBQztBQUNoQyxJQUFJLE1BQU0sR0FBWSxLQUFLLENBQUM7QUFDNUIsSUFB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UFBVSxDQUFDLEVBQUUsQ0FBQyxPQUFPLEVBQUU7WUFDbkIsT0FBTyxDQUFDLEdBQUcsQ0FBQyxVQUFVLEtBQUssQ0FBQyxLQUFLLENBQUMsVUFBVSxDQUFDLE9BQU8sYUFBYSxXQUFXLENBQUMsQ0FBQztZQUM5RSxJQUFJLENBQUMsT0FBTyxFQUFFLENBQUM7UUFDbkIsQ0FBQyxDQUFDLENBQUE7SUFDTixDQUFDO0lBQUMsSUFBSSxDQUFDLENBQUM7UUFDSixPQUFPLENBQUMsR0FBRyxDQUFDLHdCQUF3QixVQUFVLE9BQU8sYUFBYSxFQUFFLENBQUMsQ0FBQztRQUN0RSxJQUFJLENBQUMsT0FBTyxFQUFFLENBQUM7SUFDbkIsQ0FBQztJQUNELE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDO0FBQ3hCLENBQUMsQ0FBQyJ9 \ No newline at end of file diff --git a/package.json b/package.json index 0d007fc..2048f2b 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ }, "dependencies": { "@types/chalk": "^0.4.28", + "@types/q": "0.x.x", "chalk": "^1.1.3", "q": "^1.4.1", "typings-global": "^1.0.6" diff --git a/ts/index.ts b/ts/index.ts index d479f8c..88f4095 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -1,7 +1,7 @@ import "typings-global" import path = require("path"); import chalk = require("chalk"); -let q = require("q"); +import q = require("q"); import readline = require("readline"); import childProcess = require("child_process"); let earlyChild;