Skip to content

Commit 34d82af

Browse files
author
Vlad Balin
committed
Fixed TS typings
1 parent d16f734 commit 34d82af

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/collection/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export declare class Collection<R extends Record = Record> extends Transactional
3838
_onChildrenChange(record: R, options?: TransactionOptions, initiator?: Transactional): void;
3939
get(objOrId: string | R | Object): R;
4040
each(iteratee: (val: R, key: number) => void, context?: any): void;
41-
forEach(iteratee: (val: R, key: number) => void, context?: any): void;
41+
forEach(iteratee: (val: R, key?: number) => void, context?: any): void;
4242
every(iteratee: Predicate<R>, context?: any): boolean;
4343
filter(iteratee: Predicate<R>, context?: any): R[];
4444
find(iteratee: Predicate<R>, context?: any): R;

lib/collection/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/collection/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export class Collection< R extends Record = Record> extends Transactional implem
191191
}
192192
}
193193

194-
forEach( iteratee : ( val : R, key : number ) => void, context? : any ){
194+
forEach( iteratee : ( val : R, key? : number ) => void, context? : any ){
195195
return this.each( iteratee, context );
196196
}
197197

tests/typescript/dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)