Closed samreid closed 3 years ago
I worked around the problem by inlining the class declaration, and it seems to have corrected the problem. I didn't devote more time to understanding the root of the problem since it only seems to affect a few files across our codebase, and there is a straightforward workaround. @jonathanolson would you like to review?
That seems like a decent workaround, and looks good. Presumably we'll handle in a better way with typescript in the future?
Yes, I think this problem occurs in JS but not TS, since in TS you import files to provide them in type annotations. Closing.
While working on https://github.com/phetsims/chipper/issues/1055, I saw this error for Molecule Shapes:
I don't really understand this problem (if it is really a problem), but it seems to be related TypeScript parsing this JSDoc:
And thinking it's referring to a private non-exported variable name ResultMapping.