Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TypeScript][Aurelia] Enhancements and bug fixes #6149

Open
1 of 4 tasks
wing328 opened this issue Jul 23, 2017 · 2 comments
Open
1 of 4 tasks

[TypeScript][Aurelia] Enhancements and bug fixes #6149

wing328 opened this issue Jul 23, 2017 · 2 comments

Comments

@wing328
Copy link
Contributor

wing328 commented Jul 23, 2017

Description

Here is list of enhancements and bug fixes for typescript-aurelia:

  • Resolve errors when running npm install (details see below)
  • Create shell scripts, batch files to generate TS Aurelia Petstore samples
  • Setup CI (travis, shippable, etc) to cover the TS Aurelia Petstore samples.
  • Add support for validation rules defined in the spec (e.g. validation for parameters in Ruby API layer)
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

#5991

Suggest a fix/enhancement

If anyone wants to work on the enhancements or bug fixes, please reply to let us know.

cc @ksm2

@wing328
Copy link
Contributor Author

wing328 commented Jul 23, 2017

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'

@trusktr
Copy link

trusktr commented Dec 21, 2019

Possibly related: I've opened a request to fix issues like these in TypeScript by bringing declaration files to parity with language features. microsoft/TypeScript#35822

The issue with the "has or is using private name" are often caused when tsconfig has "declaration": true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants