From edd042af6e2e21f3cf041f26a151213552964782 Mon Sep 17 00:00:00 2001 From: Joe Hildebrand Date: Wed, 19 Jun 2024 15:10:34 -0600 Subject: [PATCH] Fixes #512. Update typescript types with StartRules --- CHANGELOG.md | 5 +++-- lib/peg.d.ts | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d1f99379..22d3462d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,11 +14,12 @@ Unreleased ### Bug fixes - [#507](https://github.com/peggyjs/peggy/pull/507) Remove stray semicolon in CSS - [#508](https://github.com/peggyjs/peggy/pull/508) Fix broken text input +- [#512](https://github.com/peggyjs/peggy/pull/512) Add "StartRules" to peg.d.ts. +- [#513](https://github.com/peggyjs/peggy/pull/513) Allow whitespace between + plucked word and its pattern. - [#520](https://github.com/peggyjs/peggy/pull/520) Grammar with token "constructor" fails to generate - [#522](https://github.com/peggyjs/peggy/pull/522) Switched from puppeteer to playwright for web tests, and added them to CI. -- [#513](https://github.com/peggyjs/peggy/pull/513) Allow whitespace between - plucked word and its pattern. ### Documentation - [#506](https://github.com/peggyjs/peggy/pull/506) Added END OF INPUT (`!.`). diff --git a/lib/peg.d.ts b/lib/peg.d.ts index ab3dfa66..6b131849 100644 --- a/lib/peg.d.ts +++ b/lib/peg.d.ts @@ -1089,6 +1089,7 @@ export interface LibraryResults { } export interface Parser { + StartRules: string[]; SyntaxError: parser.SyntaxErrorConstructor; parse(