Type Alias RecordWithColumn<C>

RecordWithColumn<C>: string extends C
    ? Record<string, string>
    : Record<C, string>

Record type with column type.

Type Parameters

  • C extends string
type RecordWithColumn<"aaa"|"bbb"> => Record<"aaa"|"bbb", string>
type RecordWithColumn<string> => Record<string, string | undefined>