pass npm run all in new definition-tester

This commit is contained in:
vvakame
2016-02-10 00:16:03 +09:00
parent c6c87d3587
commit 9027703c0b
96 changed files with 681 additions and 799 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
/// <reference path="denodeify.d.ts" />
/// <reference path="../es6-promise/es6-promise.d.ts" />
/// <reference path="../node/node.d.ts" />
import denodeify = require("denodeify");
@@ -7,4 +6,4 @@ import fs = require('fs');
import cp = require('child_process');
const readFile = denodeify<string,string,string>(fs.readFile);
const exec = denodeify<string,string>(cp.exec, (err, stdout, stderr) => [err, stdout]);
const exec = denodeify<string,string>(cp.exec, (err, stdout, stderr) => [err, stdout]);
+3 -5
View File
@@ -3,8 +3,6 @@
// Definitions by: joaomoreno <https://github.com/joaomoreno/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../es6-promise/es6-promise.d.ts" />
declare module "denodeify" {
function _<R>(fn: _.F0<R>, transformer?: _.M): () => Promise<R>;
function _<A,R>(fn: _.F1<A,R>, transformer?: _.M): (a:A) => Promise<R>;
@@ -16,7 +14,7 @@ declare module "denodeify" {
function _<A,B,C,D,E,F,G,R>(fn: _.F7<A,B,C,D,E,F,G,R>, transformer?: _.M): (a:A, b:B, c:C, d:D, e:E, f:F, g:G) => Promise<R>;
function _<A,B,C,D,E,F,G,H,R>(fn: _.F8<A,B,C,D,E,F,G,H,R>, transformer?: _.M): (a:A, b:B, c:C, d:D, e:E, f:F, g:G, h:H) => Promise<R>;
function _(fn: _.F, transformer?: _.M): (...args: any[]) => Promise<any>;
module _ {
type Callback<R> = (err: Error, result: R) => any;
type F0<R> = (cb: Callback<R>) => any;
@@ -31,6 +29,6 @@ declare module "denodeify" {
type F = (...args: any[]) => any;
type M = (err: Error, ...args: any[]) => any[];
}
export = _;
}
}