interface Options {
    filter?: pattern.VariablePattern.Filter;
    inner?: Pattern;
    maxComps?: number;
    minComps?: number;
}

Properties

Filter that the name part must satisfy.

inner?: Pattern

An overlay pattern that the name part must satisfy.

Setting this option effectively makes this variable an alias of the inner pattern.

When building a name, if the variable of this pattern is present in VariablePattern.build function argument, it is checked that the inner pattern matches the name and its interpretation is consistent with other variables that are present. Otherwise, the inner pattern is used to build the name.

maxComps?: number

Maximum number of components.

1

minComps?: number

Minimum number of components.

1