From 9c8a0d47a07c385124b82cd04287c2c091d2b234 Mon Sep 17 00:00:00 2001 From: Joel Spadin Date: Sat, 19 Oct 2024 19:47:11 -0500 Subject: [PATCH] fix(dsl): fix types for RuleBuilder The second parameter to RuleBuilder should be optional. Fixes #3811. --- cli/npm/dsl.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/npm/dsl.d.ts b/cli/npm/dsl.d.ts index 63f9ed49..174f902f 100644 --- a/cli/npm/dsl.d.ts +++ b/cli/npm/dsl.d.ts @@ -42,7 +42,7 @@ type GrammarSymbols = { type RuleBuilder = ( $: GrammarSymbols, - previous: Rule, + previous?: Rule, ) => RuleOrLiteral; type RuleBuilders<