fix(types): Prev limit wrong values (#9935)

**What**
The values are wrongly set which can lead to infinite depth iteration

**Note**
This will change on how we manage those cases in the future but currently it fixes an issue
This commit is contained in:
Adrien de Peretti authored and GitHub committed 2024-11-05 14:14:06 +00:00
1 parent 275a835726
commit bbf4af1725
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/types": patch
---
fix(types): Prev limit wrong values
+1 -1
View File
@@ -82,7 +82,7 @@ type FilterValue<T> =
| FilterValue2<T>[] | FilterValue2<T>[]
| null | null
type PrevLimit = [never, 1, 2, 3] type PrevLimit = [never, 0, 1, 2]
export type FilterQuery<T = any, Prev extends number = 3> = Prev extends never export type FilterQuery<T = any, Prev extends number = 3> = Prev extends never
? never ? never