Skip to content

Commit

Permalink
fix: read options type
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne-bechara committed Sep 3, 2022
1 parent fd8237b commit 4d5808d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/orm/orm.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ export interface OrmReadArguments<Entity, P extends string> {
options: OrmReadOptions<Entity, P>;
}

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
export interface OrmReadOptions<Entity, P extends string> extends FindOptions<Entity, P> {
export interface OrmReadOptions<Entity, P extends string> extends Omit<FindOptions<Entity, P>, 'populate'> {
populate?: AutoPath<Entity, P>[] | boolean | string[];
findOrFail?: boolean;
}
Expand Down

0 comments on commit 4d5808d

Please sign in to comment.