fix(dsl): fix types for RuleBuilder
The second parameter to RuleBuilder should be optional. Fixes #3811.
This commit is contained in:
parent
f9a4e8ecdc
commit
9c8a0d47a0
1 changed files with 1 additions and 1 deletions
2
cli/npm/dsl.d.ts
vendored
2
cli/npm/dsl.d.ts
vendored
|
|
@ -42,7 +42,7 @@ type GrammarSymbols<RuleName extends string> = {
|
|||
|
||||
type RuleBuilder<RuleName extends string> = (
|
||||
$: GrammarSymbols<RuleName>,
|
||||
previous: Rule,
|
||||
previous?: Rule,
|
||||
) => RuleOrLiteral;
|
||||
|
||||
type RuleBuilders<
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue