remove depth limitation from OperatorsOnlyFilters to make it compatible with BaseFilterable
This commit is contained in:
1 file changed
+15
-22
@@ -50,28 +50,21 @@ type OperatorsOnlyFilters<
|
|||||||
RemoteQueryEntryPointsLevel = RemoteQueryEntryPoints,
|
RemoteQueryEntryPointsLevel = RemoteQueryEntryPoints,
|
||||||
Exclusion extends string[] = [],
|
Exclusion extends string[] = [],
|
||||||
Lim extends number = Depth[3]
|
Lim extends number = Depth[3]
|
||||||
> = Lim extends number
|
> = {
|
||||||
? {
|
$or?: RemoteQueryFilters<
|
||||||
$or?: RemoteQueryFilters<
|
TEntry,
|
||||||
TEntry,
|
RemoteQueryEntryPointsLevel,
|
||||||
RemoteQueryEntryPointsLevel,
|
Exclusion,
|
||||||
Exclusion,
|
Lim
|
||||||
Depth[Lim]
|
>[]
|
||||||
>[]
|
$and?: RemoteQueryFilters<
|
||||||
$and?: RemoteQueryFilters<
|
TEntry,
|
||||||
TEntry,
|
RemoteQueryEntryPointsLevel,
|
||||||
RemoteQueryEntryPointsLevel,
|
Exclusion,
|
||||||
Exclusion,
|
Lim
|
||||||
Depth[Lim]
|
>[]
|
||||||
>[]
|
$not?: RemoteQueryFilters<TEntry, RemoteQueryEntryPointsLevel, Exclusion, Lim>
|
||||||
$not?: RemoteQueryFilters<
|
}
|
||||||
TEntry,
|
|
||||||
RemoteQueryEntryPointsLevel,
|
|
||||||
Exclusion,
|
|
||||||
Depth[Lim]
|
|
||||||
>
|
|
||||||
}
|
|
||||||
: never
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extract all available filters from a remote entry point deeply
|
* Extract all available filters from a remote entry point deeply
|
||||||
|
|||||||
Reference in new issue
Block a user