Fix numeric properties of node-each object

This commit is contained in:
Michael Zabka 2015-05-23 14:12:24 +02:00
parent aadd63ecae
commit 8caaea8d48
2 changed files with 7 additions and 7 deletions

View File

@ -6,9 +6,9 @@ function testEach() {
return {
paused: true,
readable: false,
started: true,
done: true,
total: true,
started: 11,
done: 12,
total: 22,
on: function (eventName: string, cb: (a: any, b?: () => void) => void) {
return EachStaticClass([]);
},

8
each/each.d.ts vendored
View File

@ -6,9 +6,9 @@
interface Each {
paused: boolean;
readable: boolean;
started: boolean;
done: boolean;
total: boolean;
started: number;
done: number;
total: number;
on(eventName: string, onCallback: Function): Each;
on(eventName: "item", onItem: (item: any, next: (error?: Error) => void) => void): Each;
on(eventName: "error", onError: (error: Error[]) => void): Each;
@ -36,4 +36,4 @@ declare var each: EachStatic;
declare module "each" {
export = each;
}
}