Type alias CSVRecord<Header>

CSVRecord<Header>: Record<Header[number], string>

CSV Record.

Type Parameters

  • Header extends ReadonlyArray<string>

    Header of the CSV.

Example: Header is ["foo", "bar"]

const record: CSVRecord<["foo", "bar"]> = {
foo: "1",
bar: "2",
};