baml.csv.stringify
Serializes rows of `T` to CSV text.
Reference version
Signature
function baml.csv.stringify<T>(
rows: T[],
options: baml.csv.WriterOptions | null = …
) -> string throws baml.csv.Error
Serializes rows of T to CSV text.
A header comes first, unless WriterOptions.write_header is false. The
names come off the first row's class, or off WriterOptions.headers, so an
empty rows produces "" with no header — with no row there is nothing to
name the columns after.
Throws
Errorfor anythingbufferandWriter.write_rows<T>throw.
Source:<builtin>/baml/ns_csv/csv.bamlbytes 40554–40896