From 15b5b82ef0d02801df5c534fae16f45869cfb5fb Mon Sep 17 00:00:00 2001 From: jemiluv8 <119384208+jemiluv8@users.noreply.github.com> Date: Tue, 2 May 2023 09:49:30 +0000 Subject: [PATCH] update SelectorField to remove special typing for $contains queries (#332) --- src/types.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/types.ts b/src/types.ts index 0c7f973..6189516 100644 --- a/src/types.ts +++ b/src/types.ts @@ -775,13 +775,7 @@ export type SelectorOperator = export type LogicalOperator = "$or" | "$and"; export type SelectorFilter = { - [K in PathsForFilter]?: - | PathType - | { - [P in SelectorOperator]?: P extends "$contains" - ? PathType | PathType[] - : PathType; - }; + [K in PathsForFilter]?: PathType | { [P in SelectorOperator]?: PathType }; }; export type LogicalFilter = {