Type Alias ParseResult<ParseOptions, T>

ParseResult<ParseOptions, T>: T extends ParseOptions & {
        columns: readonly (infer C extends string)[];
    }
    ? RecordWithColumn<C>[]
    : T extends ParseOptions & {
            skipFirstRow: true;
        }
        ? Record<string, string>[]
        : T extends ParseOptions & {
                columns?: undefined;
                skipFirstRow?: false;
            }
            ? string[][]
            : Record<string, string>[] | string[][]

Parse result type for parse and CsvParseStream.

Type Parameters

  • ParseOptions
  • T