Skip to content

Commit 9dc231d

Browse files
crazyairafc163
andauthored
feat: length = 3 (#1170)
Co-authored-by: afc163 <[email protected]>
1 parent 3613356 commit 9dc231d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/namePathType.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ type BaseNamePath = string | number | boolean | (string | number | boolean)[];
88
export type DeepNamePath<
99
Store = any,
1010
ParentNamePath extends any[] = [],
11-
> = ParentNamePath['length'] extends 5
11+
> = ParentNamePath['length'] extends 3
1212
? never
1313
: // Follow code is batch check if `Store` is base type
1414
true extends (Store extends BaseNamePath ? true : false)

0 commit comments

Comments
 (0)