-
Notifications
You must be signed in to change notification settings - Fork 228
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
Incorrect types in jsonata.d.ts #585
Comments
Please update the types. |
Code contributions are welcome here 🙂 The |
Hi, @mattbaileyuk, I can help with this. Before I make changes, do we know that |
@dkaushik95 Thanks, and yes, I believe it should always be an array, including an empty one. |
According to the included types
lhs
inExprNode
should be of typeExprNode
itself.Meanwhile:
resolves to:
As you can see, lhs is an array here.
Incorrect types make it really hard to traverse the whole
expression.ast()
tree without checking 2k+ lines source code files, which makes the developer experience not that fun.Also I didn't really go that deep into the source code, but something like this seems more intuitive at the first glance and is coherent with the provided types:
The text was updated successfully, but these errors were encountered: