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

Commit 7a0beed

Browse files
Mophy Xiongpleerock
authored andcommitted
fix: the excessive stack depth comparing types FindConditions<?> and FindConditions<?> problem (typeorm#4470)
1 parent dacac83 commit 7a0beed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/find-options/FindConditions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ import {FindOperator} from "./FindOperator";
44
* Used for find operations.
55
*/
66
export type FindConditions<T> = {
7-
[P in keyof T]?: FindConditions<T[P]>|FindOperator<FindConditions<T[P]>>;
7+
[P in keyof T]?: T[P] extends never ? FindConditions<T[P]>|FindOperator<FindConditions<T[P]>> : FindConditions<T[P]>|FindOperator<FindConditions<T[P]>>;
88
};

0 commit comments

Comments
 (0)