Skip to content

Commit

Permalink
code golf
Browse files Browse the repository at this point in the history
  • Loading branch information
EskiMojo14 committed May 7, 2023
1 parent 616be07 commit e8dc3ad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/toolkit/src/tsHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,7 @@ export type Tail<T extends any[]> = T extends [any, ...infer Tail]
? Tail
: never

declare const record: Record<string, 0>

const value = record[0]
const value = ({} as Record<string, 0>)[0]

export type UncheckedIndexedAccess<T> = IfMaybeUndefined<
typeof value,
Expand Down

0 comments on commit e8dc3ad

Please sign in to comment.