Skip to content

Commit

Permalink
fix: (base-entity) set create return type to T[] (#5400)
Browse files Browse the repository at this point in the history
  • Loading branch information
merceyz committed Feb 14, 2020
1 parent 1826b75 commit ceff897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repository/BaseEntity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class BaseEntity {
* Creates a new entities and copies all entity properties from given objects into their new entities.
* Note that it copies only properties that present in entity schema.
*/
static create<T extends BaseEntity>(this: ObjectType<T>, entityLikeArray: DeepPartial<T>[]): T;
static create<T extends BaseEntity>(this: ObjectType<T>, entityLikeArray: DeepPartial<T>[]): T[];

/**
* Creates a new entity instance and copies all entity properties from this object into a new entity.
Expand Down

1 comment on commit ceff897

@artoodeeto
Copy link
Contributor

@artoodeeto artoodeeto commented on ceff897 Mar 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hello sir. I created a new issue. #5699 I'm not sure if this is a bug but I'm getting an error after this commit.

Please sign in to comment.