Skip to content

Commit

Permalink
chore: remove workaround for "Excessive Stack Depth" from TS3.2
Browse files Browse the repository at this point in the history
this was added to our typing to work around issue described in
microsoft/TypeScript#21592 - however, as of TS 3.6.3 it has not been
an issue
  • Loading branch information
imnotjames committed Jul 31, 2021
1 parent 61a5be5 commit 5576bc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/find-options/FindConditions.ts
Expand Up @@ -4,5 +4,5 @@ import {FindOperator} from "./FindOperator";
* Used for find operations.
*/
export type FindConditions<T> = {
[P in keyof T]?: T[P] extends never ? FindConditions<T[P]>|FindOperator<FindConditions<T[P]>> : FindConditions<T[P]>|FindOperator<FindConditions<T[P]>>;
[P in keyof T]?: FindConditions<T[P]> | FindOperator<FindConditions<T[P]>>;
};

0 comments on commit 5576bc4

Please sign in to comment.