mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Fix numeric properties of node-each object
This commit is contained in:
parent
aadd63ecae
commit
8caaea8d48
@ -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
8
each/each.d.ts
vendored
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user