Skip to content

Commit

Permalink
[TypeScriptAngular2Client] Fixed variables.ts syntax errors swagger-a…
Browse files Browse the repository at this point in the history
  • Loading branch information
iain17 committed May 14, 2017
1 parent 597fa02 commit 99a73d3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class TypeScriptAngular2ClientCodegen extends AbstractTypeScriptClientCod
protected String npmName = null;
protected String npmVersion = "1.0.0";
protected String npmRepository = null;
protected String injectionToken = "InjectionToken<string>";
protected String injectionToken = "InjectionToken";

public TypeScriptAngular2ClientCodegen() {
super();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ export const COLLECTION_FORMATS = {
'tsv': ' ',
'ssv': ' ',
'pipes': '|'
}
};
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { InjectionToken<string> } from '@angular/core';
import { InjectionToken } from '@angular/core';

export const BASE_PATH = new InjectionToken<string>('basePath');
export const BASE_PATH = new InjectionToken('basePath');
export const COLLECTION_FORMATS = {
'csv': ',',
'tsv': ' ',
'ssv': ' ',
'pipes': '|'
}
};
6 changes: 3 additions & 3 deletions samples/client/petstore/typescript-angular2/npm/variables.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { InjectionToken<string> } from '@angular/core';
import { InjectionToken } from '@angular/core';

export const BASE_PATH = new InjectionToken<string>('basePath');
export const BASE_PATH = new InjectionToken('basePath');
export const COLLECTION_FORMATS = {
'csv': ',',
'tsv': ' ',
'ssv': ' ',
'pipes': '|'
}
};

0 comments on commit 99a73d3

Please sign in to comment.