@r47onfire/backolon - v0.0.0
    Preparing search index...

    Interface Pattern

    Represents a pattern variant for pattern-matching.

    interface Pattern {
        p?: PatternProgram;
        t: PatternType;
        gsv: number | boolean;
    }
    Index

    Properties

    Properties

    The compiled IR program of this pattern, if the pattern has been compiled.

    The variant of the pattern.

    gsv: number | boolean
    • For repeat, true if the repeat is greedy.
    • For anchor, true if the anchor is to the start.
    • For match_type, it is the numeric ThingType to be matched.
    • For all other pattern types, it is unused.