Search


Search something to see results

ValidationDimensionToken

Dimension token: a bound of a range [0,10px]

interface ValidationDimensionToken {
    "[LOC]": Position;
    isList?: boolean;
    isMandatatoryGroup?: boolean;
    isOptional?: boolean;
    isRepeatable?: boolean;
    isRepeatableAtLeastOnce?: boolean;
    match?: { max: ValidationNumberToken | null; min: ValidationNumberToken };
    range?: ValidationValueRangeMatch | ValidationDimensionRangeMatch;
    typ: Dimension;
    unit:
        | "toString"
        | "toLocaleString"
        | "toFixed"
        | "toExponential"
        | "toPrecision"
        | "valueOf";
    unitText: string;
    val: number;
}

Hierarchy (View Summary)

Index

Properties

"[LOC]": Position

token position

isList?: boolean

match a comma separated list

isMandatatoryGroup?: boolean

token is a mandatory group

isOptional?: boolean

token is optional

isRepeatable?: boolean

token matches 0 or more times

isRepeatableAtLeastOnce?: boolean

token matches 1 or more times

match?: { max: ValidationNumberToken | null; min: ValidationNumberToken }

token matching rules

Type Declaration

tokan's value range

token type

unit:
    | "toString"
    | "toLocaleString"
    | "toFixed"
    | "toExponential"
    | "toPrecision"
    | "valueOf"

unit type

unitText: string

unit, as written

val: number

token value