Type Alias EnsureRecord<TInput>

EnsureRecord<TInput>: TInput extends [infer TKey, infer TValue] | readonly [infer TKey, infer TValue]
    ? TKey extends string | number | symbol
        ? Record<TKey, TValue>
        : never
    : never

Type Parameters

  • TInput