Skip to content

Commit

Permalink
chore: remove workaround for "Excessive Stack Depth" from TS3.2 (#7996)
Browse files Browse the repository at this point in the history
this was added to our typing to work around the issue described in
microsoft/TypeScript#21592 - however, as of TS 3.6.3 it has not been
a problem
  • Loading branch information
imnotjames committed Jul 31, 2021
1 parent 91d5b2f commit f7eb46d
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]?: 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 f7eb46d

Please sign in to comment.