We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10a5182 commit f2bb602Copy full SHA for f2bb602
src/find-options/FindConditions.ts
@@ -3,6 +3,8 @@ import {FindOperator} from "./FindOperator";
3
/**
4
* Used for find operations.
5
*/
6
-export type FindConditions<T> = {
7
- [P in keyof T]?: FindConditions<T[P]>|FindOperator<FindConditions<T[P]>>;
+export declare type FindConditions<T> = {
+ [P in keyof T] ?: T[P] extends never
8
+ ? FindConditions<T[P]> | FindOperator<FindConditions<T[P]>>
9
+ : FindConditions<T[P]> | FindOperator<FindConditions<T[P]>>;
10
};
0 commit comments