forked from loafle/openapi-generator-original
some small import fixes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import {Http, Headers, RequestOptionsArgs, Response, URLSearchParams} from 'angular2/http';
|
||||
import {Injectable} from 'angular2/core';
|
||||
import {Observable} from 'rxjs/Observable';
|
||||
import * as models from "../model/models.ts"
|
||||
import * as models from '../model/models';
|
||||
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
@@ -79,7 +79,7 @@ export class {{classname}} {
|
||||
{{/hasFormParams}}
|
||||
|
||||
return this.http.request(path, requestOptions)
|
||||
.map(response => response.json());
|
||||
.map((response: Response) => response.json());
|
||||
}
|
||||
|
||||
{{/operation}}
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
export * from './api/apis.ts';
|
||||
export * from './model/models.ts';
|
||||
export * from './api/api';
|
||||
export * from './model/models';
|
||||
@@ -1,7 +1,7 @@
|
||||
{{#models}}
|
||||
{{#model}}
|
||||
'use strict';
|
||||
import * as models from "./models.ts"
|
||||
import * as models from './models.ts';
|
||||
|
||||
{{#description}}
|
||||
/**
|
||||
@@ -16,7 +16,6 @@ export interface {{classname}} {{#parent}}extends models.{{{parent}}} {{/parent}
|
||||
* {{{description}}}
|
||||
*/
|
||||
{{/description}}
|
||||
|
||||
{{name}}?: {{#isEnum}}{{classname}}.{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{datatype}}}{{/isEnum}};
|
||||
{{/vars}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user