Conveert an InputRow to an AnyRow, that is, parse and validate fields for
each type of object.
InputRow objects differ from AnyRow objects, in that the field names are capitalized.
This is convenient for column headings in editing the CSV files, and also helps to distinguish between
unprocessed InputRow and processed AnyRow objects.
optional<T>(fn: (a: any) => T): <D>(dflt: D) => (a: any) => T | D
A higher-order function that takes a converter function and gives a higher-order function that takes a default,
which returns a converter that uses the default when no value is supplied, instead of invoking the converter.
Type parameters
T
Parameters
fn: (a: any) => T
a converter function
(a: any): T
Parameters
a: any
Returns T
Returns <D>(dflt: D) => (a: any) => T | D
<D>(dflt: D): (a: any) => T | D
Type parameters
D
Parameters
dflt: D
Returns (a: any) => T | D
(a: any): T | D
Parameters
a: any
Returns T | D
Const optionalDate
optionalDate<D>(dflt: D): (a: any) => Date | D
Type parameters
D
Parameters
dflt: D
Returns (a: any) => Date | D
(a: any): Date | D
Parameters
a: any
Returns Date | D
Const optionalMoney
optionalMoney<D>(dflt: D): (a: any) => Tagged<"Money", number> | D
Input processing, invoked by loadData. A separate file because loadData triggers loading problems for jest unit tests.