Member Junction
    Preparing search index...

    A parameter matcher as written in a golden file.

    interface CorpusParamMatcher {
        flags?: string;
        matcher:
            | "exact"
            | "nonEmpty"
            | "oneOf"
            | "regex"
            | "typeOf"
            | "absent"
            | "contains"
            | "numericTolerance";
        optional?: boolean;
        pattern?: string;
        tolerance?: number;
        type?: "string"
        | "number"
        | "boolean"
        | "object"
        | "array";
        value?: unknown;
        values?: unknown[];
    }
    Index

    Properties

    flags?: string
    matcher:
        | "exact"
        | "nonEmpty"
        | "oneOf"
        | "regex"
        | "typeOf"
        | "absent"
        | "contains"
        | "numericTolerance"
    optional?: boolean

    Absent is acceptable; a present value is still checked.

    pattern?: string
    tolerance?: number

    For numericTolerance: the permitted absolute deviation from value.

    type?: "string" | "number" | "boolean" | "object" | "array"

    For typeOf.

    value?: unknown
    values?: unknown[]