UNPKG

735 BPlain TextView Raw
1/**
2 * A particular field of a parsed result of a data string.
3 */
4export interface ParserField {
5 /**
6 * The name of the field.
7 */
8 readonly name: string;
9 /**
10 * The parsed representation of the data contained in the field.
11 * If no parsed representation is available for the field, this property is undefined.
12 * Use [[ParserField.rawString]] to retrieve the data for these fields.
13 */
14 // tslint:disable-next-line:no-any
15 readonly parsed?: any;
16 /**
17 * The raw substring of the original code containing the field data.
18 * For fields that are inferred and do not have a direct correspondence to a particular part of the string,
19 * the string is set to an empty string.
20 */
21 readonly rawString: string;
22}