Skip to content

Commit 7981627

Browse files
author
Vlad Balin
authored
Merge pull request #18 from Amediko/master
fix iteratee definition
2 parents 19a629a + 2ccb2e2 commit 7981627

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

dist/index.js

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

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/record/transaction.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export declare class Record extends Transactional implements Owner {
8080
_keys: string[];
8181
Attributes(x: AttributesValues): void;
8282
forEachAttr(attrs: {}, iteratee: (value: any, key?: string, spec?: Attribute) => void): void;
83-
each(iteratee: (value?: any, key?: string) => void, context?: any): void;
83+
each(iteratee: (value?: any, key?: string | number) => void, context?: any): void;
8484
keys(): string[];
8585
values(): any[];
8686
_toJSON(): {};

lib/record/transaction.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/record/transaction.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ export class Record extends Transactional implements Owner {
294294
*/
295295
}
296296

297-
each( iteratee : ( value? : any, key? : string ) => void, context? : any ){
297+
each( iteratee : ( value? : any, key? : string | number ) => void, context? : any ){
298298
const fun = context !== void 0 ? ( v, k ) => iteratee.call( context, v, k ) : iteratee,
299299
{ attributes } = this;
300300

@@ -704,4 +704,4 @@ class RecordTransaction implements Transaction {
704704

705705
this.isRoot && commit( object, initiator );
706706
}
707-
}
707+
}

0 commit comments

Comments
 (0)