Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Commit

Permalink
fix: the excessive stack depth comparing types FindConditions<?> an…
Browse files Browse the repository at this point in the history
…d `FindConditions<?>` problem (typeorm#4470)
  • Loading branch information
mophy authored and pleerock committed Sep 5, 2019
1 parent dacac83 commit 7a0beed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/find-options/FindConditions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import {FindOperator} from "./FindOperator";
* Used for find operations.
*/
export type FindConditions<T> = {
[P in keyof T]?: FindConditions<T[P]>|FindOperator<FindConditions<T[P]>>;
[P in keyof T]?: T[P] extends never ? FindConditions<T[P]>|FindOperator<FindConditions<T[P]>> : FindConditions<T[P]>|FindOperator<FindConditions<T[P]>>;
};

0 comments on commit 7a0beed

Please sign in to comment.