Skip to content

Commit

Permalink
feat: length = 3 (#1170)
Browse files Browse the repository at this point in the history
Co-authored-by: afc163 <afc163@gmail.com>
  • Loading branch information
crazyair and afc163 authored Aug 13, 2024
1 parent 3613356 commit 9dc231d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/namePathType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9dc231d

Please sign in to comment.