Skip to content

Commit

Permalink
feat: DeepNamePath deep = 5 (#1141)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyair authored Jun 6, 2024
1 parent edb55fc commit facc838
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 10
> = ParentNamePath['length'] extends 5
? never
: // Follow code is batch check if `Store` is base type
true extends (Store extends BaseNamePath ? true : false)
Expand Down

0 comments on commit facc838

Please sign in to comment.