diff --git a/src/namePathType.ts b/src/namePathType.ts index 2f221d65d..0ed5b4bb2 100644 --- a/src/namePathType.ts +++ b/src/namePathType.ts @@ -8,7 +8,7 @@ type BaseNamePath = string | number | boolean | (string | number | boolean)[]; export type DeepNamePath< Store = any, ParentNamePath extends any[] = [], -> = ParentNamePath['length'] extends 5 +> = ParentNamePath['length'] extends 3 ? never : // Follow code is batch check if `Store` is base type true extends (Store extends BaseNamePath ? true : false)