Merge pull request #2504 from tree-sitter/fix-dts

fix: dsl.d.ts - define previous param in rule callbacks
This commit is contained in:
Andrew Hlynskyi 2023-08-16 01:04:34 +03:00 committed by GitHub
commit 026c81035d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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

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