Used to configure a parser through the constructor. Note that the constructor will have other values that are either so important and required that explicitly showing them in a parameter makes more sense, or you are creating a base class with options only controlled by the subclasses.

interface DataTypeParserOptions<TDataType> {
    emptyStringResult?: null | TDataType;
    trim?: boolean | "start" | "end";
}

Type Parameters

  • TDataType

Hierarchy (view full)

Properties

emptyStringResult?: null | TDataType

Value to return if the text was only an empty string (after trimming) Defaults to ''. Can be any string or null

trim?: boolean | "start" | "end"

Determines if leading and trailing whitespace is discarded. Defaults to true. Can be 'start' to trim only starting whitespace and 'end' to trim only ending whitespace.

Generated using TypeDoc v0.25.12