Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(TypeScript): update and add missing definition in IntervalSEt.d.ts #4622

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

yrue
Copy link

@yrue yrue commented May 22, 2024

In the TypeScript target, I noticed that the IntervalSet.d.ts file didn't match the code in IntervalSet.js—they really should be the same. Because of this mismatch, I ran into the error TS2339: "Property 'addRange' does not exist on type 'IntervalSet'" when I tried to use IntervalSet utilities like addOne. So, in this PR, I've made changes to ensure they are consistent.

@yrue yrue marked this pull request as draft May 22, 2024 02:55
@yrue yrue marked this pull request as ready for review May 23, 2024 03:07
@mike-lischke
Copy link
Member

Instead of fixing each problem in the standard TS runtime step by step you could use a really complete TS runtime, which is also faster (antlr4ng). Saves you some headache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants