IDataParserOptions
Type interface
Defines common options for all data parsers.
Sources
IDataParserOptions is an interface: it describes a shape of data and is not imported on its own.
Inheritance
IDataParserOptions does not extend any other symbol.
IDataParserOptions is extended by ICSVOptions, IJSONOptions.
Properties
dateFieldsType
string[]List of fields in data that need to be treated as Dates, i.e. converted to
Dateobjects from whatever source format they are currently in.dateFormatType
stringOverride date format set in
dateFormatter.More info: Formatting Date & Time: parsing dates Tutorial on date parsing
dateFormatterType
DateFormatterAn instance of
DateFormatterto use when parsing string-based dates.If it's not set, the parser will create it's own instance of
DateFormatter, should any date parsing required. (dateFieldsis set)UnlessdateFormatis set in parser options, the parser will try to look fordateFormatindateFormatter.More info: Formatting Date & Time: parsing dates Tutorial on date parsing
emptyAsType
anyEmpty values (e.g. empty strings,
null, etc.) will be replaced with this.numberFieldsType
string[]List of fields in data that hold numeric values. Parser will try to convert the value in those fields to a
number.