improve typings

This commit is contained in:
Philipp Kunz 2016-08-21 17:29:38 +02:00
parent 9f8e30526f
commit b7e48313e1
4 changed files with 7 additions and 4 deletions

4
dist/index.d.ts vendored
View File

@ -1,3 +1,5 @@
/// <reference types="q" />
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<{}>;

4
dist/index.js vendored
View File

@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTyxnQkFDUCxDQUFDLENBRHNCO0FBQ3ZCLE1BQU8sSUFBSSxXQUFXLE1BQU0sQ0FBQyxDQUFDO0FBQzlCLE1BQU8sS0FBSyxXQUFXLE9BQU8sQ0FBQyxDQUFDO0FBQ2hDLElBQUksQ0FBQyxHQUFHLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUVyQixNQUFPLFlBQVksV0FBVyxlQUFlLENBQUMsQ0FBQztBQUMvQyxJQUFJLFVBQVUsQ0FBQztBQUVmLElBQUksV0FBVyxHQUFZLElBQUksQ0FBQztBQUNoQyxJQUFJLE1BQU0sR0FBWSxLQUFLLENBQUM7QUFDNUIsSUFBSSxVQUFVLEdBQVcsdUJBQXVCLENBQUM7QUFDakQsSUFBSSxTQUFTLENBQUM7QUFFZCxFQUFFLENBQUMsQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUMsSUFBSSxPQUFPLENBQUMsR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FFLENBQUM7UUFDbkIsQ0FBQyxDQUFDLENBQUE7SUFDTixDQUFDO0lBQUMsSUFBSSxDQUFDLENBQUM7UUFDSixPQUFPLENBQUMsR0FBRyxDQUFDLHdCQUF3QixVQUFVLE9BQU8sYUFBYSxFQUFFLENBQUMsQ0FBQztRQUN0RSxJQUFJLENBQUMsT0FBTyxFQUFFLENBQUM7SUFDbkIsQ0FBQztJQUNELE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDO0FBQ3hCLENBQUMsQ0FBQyJ9

View File

@ -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"

View File

@ -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;