Expand description
interface RuleHandle {
first(): RuleHandle;
times(n: number): RuleHandle;
}Methods§
Source§first(): RuleHandle
first(): RuleHandle
Move this rule to the front of the list so it matches first.
Source§times(n: number): RuleHandle
times(n: number): RuleHandle
Auto-expire the rule after n matches.
A handle to a registered rule. All methods return
thisfor chaining.