Skip to content

Commit

Permalink
feat: ts
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyair committed Jul 24, 2023
1 parent 4290a20 commit 31ee38d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/namePathType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
* T1:缓存上一次的 name list
*/
export type DeepNamePath<T = any, T1 extends any[] = []> = any extends T
? Record<string, any> extends T
? T
: T extends string | number | (string | number)[]
? T extends string | number | (string | number)[]
? T
: never
: {
Expand Down

0 comments on commit 31ee38d

Please sign in to comment.