some small import fixes

This commit is contained in:
Kristof Vrolijkx
2016-04-20 16:07:02 +02:00
parent 1825a467d8
commit 26c8eb1068
3 changed files with 5 additions and 6 deletions

View File

@@ -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}}

View File

@@ -1,2 +1,2 @@
export * from './api/apis.ts';
export * from './model/models.ts';
export * from './api/api';
export * from './model/models';

View File

@@ -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}}
}