diff --git a/packages/toolkit/src/tsHelpers.ts b/packages/toolkit/src/tsHelpers.ts index 7fa472c4cd..419465eb36 100644 --- a/packages/toolkit/src/tsHelpers.ts +++ b/packages/toolkit/src/tsHelpers.ts @@ -208,9 +208,7 @@ export type Tail = T extends [any, ...infer Tail] ? Tail : never -declare const record: Record - -const value = record[0] +const value = ({} as Record)[0] export type UncheckedIndexedAccess = IfMaybeUndefined< typeof value,