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
exportdefaultclassTest{protectedx: numberprotectedy: numberprivateconstructor(x: number,y: number){if(typeofx==='number')this.x=x// example rule to trigger printerthis.y=y}}
The printer doesn't understand that the constructor can be scoped, so it transform it into this:
constisNumber=(a): a is number=>typeof'number'exportdefaultclassTest{protectedx: numberprotectedy: numberconstructorprivate(x: number,y: number){if(isNumber(x))this.x=xthis.y=y}}
The text was updated successfully, but these errors were encountered:
For example, I have this class:
The printer doesn't understand that the
constructor
can be scoped, so it transform it into this:The text was updated successfully, but these errors were encountered: