csv-stream-lite - v1.0.4
    Preparing search index...

    Type Alias CsvObjectShape<T>

    CsvObjectShape: { [key in keyof T]: (cell: string) => T[key] }

    Defines the shape of a CSV object by mapping each property key to a transformer function. The transformer function converts a cell string into the appropriate type for that property.

    Type Parameters

    • T extends object

      The object type being defined

    const shape: CsvObjectShape<User> = {
    name: String,
    age: Number,
    active: Boolean
    }