-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[typescript] Runtime declares CommonToken(source, .....) wrong. #4318
Comments
Can you try: constructor(source: [ TokenSource, InputStream ], type: number, channel: number, start: number, stop: number); ? |
Tried and got a couple different things.
|
second issue suggests that you haven't updated CommonToken.d.ts ? |
grammars-v4 CI builds use official NPM published packages. 4.13.0 is the latest. |
ah. I guess in the meantime you could write: |
Thanks, that works. What a weird type checking, coersion language. The fix--may be--seems to be with CommonToken.d.ts.
Good. I'll leave this off here for now as I need to back to cleaning up the horrifying chaos with the grammars-v4/python grammars. |
since that works, the fix is what I initially sent, for CommonToken.d.ts - sorry if I wasn't explicit enough. |
I need to create a CommonToken for python3 but for TypeScript. Unfortunately, "source" is declared as a number here. That's wrong. Completely blocked.
The text was updated successfully, but these errors were encountered: