You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/apache-document-root/main/chipper/tsconfig/molecule-shapes$ tsc -b
../../../molecule-shapes/js/common/model/VSEPRConfiguration.js:37:7 - error TS9006: Declaration emit for this file requires using private name 'ResultMapping' from module '"/Users/samreid/apache-document-root/main/molecule-shapes/js/common/model/AttractorModel"'. An explicit type annotation may unblock declaration emit.
37 class VSEPRConfiguration {
~~~~~~~~~~~~~~~~~~
Found 1 error.
I don't really understand this problem (if it is really a problem), but it seems to be related TypeScript parsing this JSDoc:
/** * For finding ideal rotations including matching for 'bond-vs-bond' and 'lone pair-vs-lone pair'. * @public * * @param {Array.<PairGroup>} groups * @returns {AttractorModel.ResultMapping} */getIdealGroupRotationToPositions(groups){
And thinking it's referring to a private non-exported variable name ResultMapping.
The text was updated successfully, but these errors were encountered:
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?
While working on phetsims/chipper#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.
The text was updated successfully, but these errors were encountered: