@motion-script/core / ParseCSVOptions
Interface: ParseCSVOptions
Defined in: util/csv.ts:6
Properties
boolean?
optionalboolean?:boolean|string[]
Defined in: util/csv.ts:24
Which columns to coerce to boolean, same shape/semantics as
numeric. Default (omitted/true): auto-detect — a column
becomes boolean only if every non-empty cell is exactly "true" or
"false". Never applied to a column already coerced to numeric.
delimiter?
optionaldelimiter?:string
Defined in: util/csv.ts:8
Field separator. Default: ','.
numeric?
optionalnumeric?:boolean|string[]
Defined in: util/csv.ts:17
Which columns to coerce to number. An explicit list forces just those
columns; false disables coercion entirely (every cell stays a string).
Default (omitted/true): auto-detect — a column becomes numeric only if
every non-empty cell in it parses as a finite number, so a text column
that happens to contain a numeric-looking value here and there is left
alone rather than partially coerced.