Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{{#apiInfo}}
{{#apis}}
{{#operations}}
export * from './{{ classname }}';
import { {{ classname }} } from './{{ classname }}';
export * from './{{ classFilename }}';
import { {{ classname }} } from './{{ classFilename }}';
{{/operations}}
{{/apis}}
export const APIS = [ {{#apis}}{{#operations}}{{ classname }}, {{/operations}}{{/apis}}];
export const APIS = [{{#apis}}{{#operations}}{{ classname }}, {{/operations}}{{/apis}}];
{{/apiInfo}}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{#models}}
{{#model}}
export * from './{{{ classname }}}';
export * from './{{{ classFilename }}}';
{{/model}}
{{/models}}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{#models}}
{{#model}}
export * from './{{{ classname }}}';
export * from './{{{ classFilename }}}';
{{/model}}
{{/models}}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './FakeApi';
import { FakeApi } from './FakeApi';
export const APIS = [ FakeApi, ];
import { FakeApi } from './FakeApi';
export const APIS = [FakeApi, ];
8 changes: 4 additions & 4 deletions samples/client/petstore/typescript-angular/api/api.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export * from './PetApi';
import { PetApi } from './PetApi';
import { PetApi } from './PetApi';
export * from './StoreApi';
import { StoreApi } from './StoreApi';
import { StoreApi } from './StoreApi';
export * from './UserApi';
import { UserApi } from './UserApi';
export const APIS = [ PetApi, StoreApi, UserApi, ];
import { UserApi } from './UserApi';
export const APIS = [PetApi, StoreApi, UserApi, ];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TiFu FYI. I'll file a PR later to remove the trailing comma.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UPDATE: fixed via #5563

4 changes: 2 additions & 2 deletions samples/client/petstore/typescript-angular2/npm/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201703211709
## @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201704132011

### Building

Expand All @@ -19,7 +19,7 @@ navigate to the folder of your consuming project and run one of next commando's.
_published:_

```
npm install @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201703211709 --save
npm install @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201704132011 --save
```

_unPublished (not recommended):_
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swagger/angular2-typescript-petstore",
"version": "0.0.1-SNAPSHOT.201703211709",
"version": "0.0.1-SNAPSHOT.201704132011",
"description": "swagger client for @swagger/angular2-typescript-petstore",
"author": "Swagger Codegen Contributors",
"keywords": [
Expand Down