Open wing328 opened 6 years ago
Here is the npm install
error:
AuthStorage.ts(44,17): error TS1110: Type expected.
AuthStorage.ts(44,31): error TS1005: ';' expected.
AuthStorage.ts(53,25): error TS1005: ',' expected.
AuthStorage.ts(53,34): error TS1005: ';' expected.
AuthStorage.ts(53,41): error TS1005: ';' expected.
AuthStorage.ts(61,24): error TS1005: ';' expected.
AuthStorage.ts(61,31): error TS1005: ';' expected.
AuthStorage.ts(69,21): error TS1005: ';' expected.
AuthStorage.ts(69,37): error TS1005: ';' expected.
AuthStorage.ts(72,1): error TS1128: Declaration or statement expected.
Api.ts(52,44): error TS1110: Type expected.
Api.ts(52,49): error TS1005: ';' expected.
Api.ts(71,3): error TS1128: Declaration or statement expected.
Api.ts(71,40): error TS1005: ',' expected.
Api.ts(71,56): error TS1005: ',' expected.
Api.ts(71,70): error TS1005: ',' expected.
Api.ts(71,78): error TS1005: ',' expected.
Api.ts(71,80): error TS1005: ';' expected.
Api.ts(72,9): error TS1138: Parameter declaration expected.
Api.ts(72,14): error TS1005: ':' expected.
Api.ts(72,35): error TS1005: ',' expected.
Api.ts(72,37): error TS1136: Property assignment expected.
Api.ts(75,3): error TS1128: Declaration or statement expected.
Api.ts(76,1): error TS1128: Declaration or statement expected.
PetApi.ts(18,8): error TS1005: ',' expected.
PetApi.ts(18,22): error TS1128: Declaration or statement expected.
PetApi.ts(22,1): error TS1109: Expression expected.
PetApi.ts(22,8): error TS1005: ';' expected.
UserApi.ts(19,8): error TS1005: ',' expected.
UserApi.ts(19,20): error TS1128: Declaration or statement expected.
UserApi.ts(20,1): error TS1128: Declaration or statement expected.
UserApi.ts(20,8): error TS1005: ';' expected.
AuthStorage.ts(44,16): error TS4055: Return type of public method from exported class has or is using private name ''.
Api.ts(52,43): error TS4055: Return type of public method from exported class has or is using private name ''.
PetApi.ts(28,9): error TS4033: Property 'body' of exported interface has or is using private name 'Pet'.
PetApi.ts(64,9): error TS4033: Property 'body' of exported interface has or is using private name 'Pet'.
PetApi.ts(106,40): error TS4055: Return type of public method from exported class has or is using private name 'Promise'.
PetApi.ts(139,46): error TS4055: Return type of public method from exported class has or is using private name 'Promise'.
PetApi.ts(169,60): error TS4055: Return type of public method from exported class has or is using private name 'Promise'.
PetApi.ts(169,74): error TS4055: Return type of public method from exported class has or is using private name 'Pet'.
PetApi.ts(202,56): error TS4055: Return type of public method from exported class has or is using private name 'Promise'.
PetApi.ts(202,70): error TS4055: Return type of public method from exported class has or is using private name 'Pet'.
PetApi.ts(235,48): error TS4055: Return type of public method from exported class has or is using private name 'Promise'.
PetApi.ts(235,56): error TS4055: Return type of public method from exported class has or is using private name 'Pet'.
PetApi.ts(266,46): error TS4055: Return type of public method from exported class has or is using private name 'Promise'.
PetApi.ts(300,62): error TS4055: Return type of public method from exported class has or is using private name 'Promise'.
PetApi.ts(338,48): error TS4055: Return type of public method from exported class has or is using private name 'Promise'.
PetApi.ts(338,56): error TS4055: Return type of public method from exported class has or is using private name 'ApiResponse'.
StoreApi.ts(69,50): error TS4055: Return type of public method from exported class has or is using private name 'Promise'.
StoreApi.ts(97,25): error TS4055: Return type of public method from exported class has or is using private name 'Promise'.
StoreApi.ts(126,52): error TS4055: Return type of public method from exported class has or is using private name 'Promise'.
StoreApi.ts(155,48): error TS4055: Return type of public method from exported class has or is using private name 'Promise'.
UserApi.ts(100,48): error TS4055: Return type of public method from exported class has or is using private name 'Promise'.
UserApi.ts(131,78): error TS4055: Return type of public method from exported class has or is using private name 'Promise'.
UserApi.ts(162,76): error TS4055: Return type of public method from exported class has or is using private name 'Promise'.
UserApi.ts(193,48): error TS4055: Return type of public method from exported class has or is using private name 'Promise'.
UserApi.ts(222,54): error TS4055: Return type of public method from exported class has or is using private name 'Promise'.
UserApi.ts(252,46): error TS4055: Return type of public method from exported class has or is using private name 'Promise'.
UserApi.ts(285,23): error TS4055: Return type of public method from exported class has or is using private name 'Promise'.
UserApi.ts(313,48): error TS4055: Return type of public method from exported class has or is using private name 'Promise'
Possibly related: I've opened a request to fix issues like these in TypeScript by bringing declaration files to parity with language features. https://github.com/microsoft/TypeScript/issues/35822
The issue with the "has or is using private name" are often caused when tsconfig has "declaration": true
.
Description
Here is list of enhancements and bug fixes for
typescript-aurelia
:npm install
(details see below)Swagger-codegen version
Latest master
Command line used for generation
./bin/typescript-aurelia-petstore.sh
or.\bin\windows\typescript-aurelia-petstore.bat
Related issues/PRs
https://github.com/swagger-api/swagger-codegen/pull/5991
Suggest a fix/enhancement
If anyone wants to work on the enhancements or bug fixes, please reply to let us know.
cc @ksm2