Closed paddyobrien closed 2 years ago
Indeed. Looks a lot like a TypeScript regression—it sets the return type of resolveNode
to any
though that function only ever returns a variable with type SyntaxNode
, and implicit any is turned off in the TS config, so it should at least error if it can't figure out a type. (Didn't report it yet, since I couldn't find a simple script that reproduces the issue.)
Patch https://github.com/lezer-parser/common/commit/2d7ea5ddbcfa8276f34670085b0a96aefb93ac10 adds an explicit return type.
The return type of
Tree.resolve
andTree.resolveInner
have changed toany
in@lezer/common@0.15.11
.Looking at the diff that caused this it appears the change was unintentional.
Before:
After: