Type Alias OptionalIfPossiblyUndefined<K, T>

OptionalIfPossiblyUndefined<K, T>: [T | undefined] extends [T]
    ? Partial<Record<K, T>>
    : Record<K, T>

Type Parameters

  • K extends string | number | symbol
  • T