web-csv-toolbox - v0.14.0
    Preparing search index...

    Type Alias CSVObjectRecord<Header>

    CSVObjectRecord: Record<Header[number], string>

    CSV record as an object (traditional format).

    Type Parameters

    • Header extends ReadonlyArray<string>

      Header of the CSV.

    This type represents a single CSV record as an object, where each key corresponds to a header field and the value is the field's string content.

    const header = ["foo", "bar"] as const;

    type Record = CSVObjectRecord<typeof header>;
    // { foo: string; bar: string }

    const record: Record = { foo: "1", bar: "2" };