fix(dsl): fix types for RuleBuilder

The second parameter to RuleBuilder should be optional. Fixes #3811.
This commit is contained in:
Joel Spadin 2024-10-19 19:47:11 -05:00 committed by Amaan Qureshi
parent f9a4e8ecdc
commit 9c8a0d47a0

2
cli/npm/dsl.d.ts vendored
View file

@ -42,7 +42,7 @@ type GrammarSymbols<RuleName extends string> = {
type RuleBuilder<RuleName extends string> = (
$: GrammarSymbols<RuleName>,
previous: Rule,
previous?: Rule,
) => RuleOrLiteral;
type RuleBuilders<