docs(csv): fix description of ParseResult (#5170)

This commit is contained in:
Yoshiya Hinosawa 2024-06-27 16:24:30 +09:00 committed by GitHub
parent ef4231e90e
commit 7bf534f8a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -352,7 +352,7 @@ export function convertRowToObject(
return out;
}
/** Options for {@linkcode parse} and {@linkcode CsvParseStream}. */
/** Parse result type for {@linkcode parse} and {@linkcode CsvParseStream}. */
export type ParseResult<ParseOptions, T> =
// If `columns` option is specified, the return type is Record type.
T extends ParseOptions & { columns: readonly (infer C extends string)[] }