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
classIResponseErrorextendsError{axiosResponse;//** random line of generated code, which stops imports into react and things, it shouldn't be hereconstructor(message,axiosResponse){super(message);
Moduleparse failed: Unexpectedtoken(54:12)Youmayneedanappropriateloadertohandlethisfiletype.|})(IGatewayConfigController=exports.IGatewayConfigController||(exports.IGatewayConfigController={}));|classGatewayConfigAPI{|endpoint;// ***************Line 54 this line should not have been generated.|constructor(endpoint){|this.endpoint=endpoint;// unessary linethis.endpoint=endpoint.substring(0,endpoint.length-1);}
classIDONetMapsEDIConfigShare{nethost;// This shouldn't be herenetshare;// This shouldn't be hereusername;// This shouldn't be herepassword;// This shouldn't be here}
4-Input
exportclassIDONetMapsEDIConfigResponse{constructor(clone: INetMapsEDIServicesConfigComplete,activeStatus: string){this.enabled=clone.enabled;this.netMapsEDI=clone.netMapsEDI!==undefined ? clone.netMapsEDI : null;this.activeStatus=activeStatus;// look at just writting a generic class that does this, where we pick using and clone, extends, use type hack I know later.}
@IsBoolean()enabled:boolean;
@IsString()activeStatus:string;
@ValidateNested()//@Type(() => IDONetMapsEDIConfigShare)netMapsEDI: IDONetMapsEDIConfigShare|null;}
4 - Output JS
classIDONetMapsEDIConfigResponse{constructor(clone,activeStatus){this.enabled=clone.enabled;this.netMapsEDI=clone.netMapsEDI!==undefined ? clone.netMapsEDI : null;this.activeStatus=activeStatus;// look at just writting a generic class that does this, where we pick using and clone, extends, use type hack I know later.}enabled;// This should not be here.activeStatus;//@Type(() => IDONetMapsEDIConfigShare)netMapsEDI;}
4 - Expected JS
classIDONetMapsEDIConfigResponse{constructor(clone,activeStatus){this.enabled=clone.enabled;this.netMapsEDI=clone.netMapsEDI!==undefined ? clone.netMapsEDI : null;this.activeStatus=activeStatus;// look at just writting a generic class that does this, where we pick using and clone, extends, use type hack I know later.}activeStatus;//@Type(() => IDONetMapsEDIConfigShare)netMapsEDI;}
Kind Regards,
Wesley Oliver
The text was updated successfully, but these errors were encountered:
This is working as intended. The behaviour can be controlled with the useDefineForClassFields flag. For the ESNext target this is enabled by default, for all earlier targets it's disabled by default.
This is done to align with the future ECMAScript standard. See #45076.
This issue has been marked as 'Question' and has seen no recent activity. It has been automatically closed for house-keeping purposes. If you're still waiting on a response, questions are usually better suited to stackoverflow.
Bug Report
🔎 Search Terms
Variants of this: [ts compile] generating js ([variable names] [declarations ])
🕗 Version & Regression Information
Introduce after version 4.2.4 by the looks of it, version 4.3.2 features the bug.
nt-bugs
This issue also exists in the latest Nightly build, sorry.
Please keep and fill in the line that best applies:
-->
1-Input
1-Output
2-Input
2-Output
3 - Input:
3- Output:
4-Input
4 - Output JS
4 - Expected JS
Kind Regards,
Wesley Oliver
The text was updated successfully, but these errors were encountered: