Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouzhenpan committed Jul 16, 2024
1 parent ce9c2ac commit c9062ae
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/03188-medium-tuple-to-nested-object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,3 @@ type TupleToNestedObject<T, U> = T extends [infer F, ...infer R]
[K in F & string]: TupleToNestedObject<R, U>
}
: U

type Model = ['name', 'storm']

type TupleToObject<T> = T extends [infer F, infer R] ? { [K in F]: R } : never

0 comments on commit c9062ae

Please sign in to comment.