Update TypeScript angular sample

This commit is contained in:
Mads Mætzke Tandrup 2015-07-27 10:20:55 +02:00
parent 09ccf12a3b
commit 64f2e85608
No known key found for this signature in database
GPG Key ID: 67056F406C84B14B
2 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ module API.Client {
return this.$http(httpRequestParams);
}
public uploadFile (petId: number, additionalMetadata?: string, file?: file, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> {
public uploadFile (petId: number, additionalMetadata?: string, file?: any, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> {
var path = this.basePath + '/pet/{petId}/uploadImage';
path = path.replace('{' + 'petId' + '}', String(petId));

View File

@ -16,7 +16,7 @@ module API.Client {
}
}
public getInventory (extraHttpRequestParams?: any ) : ng.IHttpPromise<map<String, number>> {
public getInventory (extraHttpRequestParams?: any ) : ng.IHttpPromise<{ [key: string]: number; }> {
var path = this.basePath + '/store/inventory';
var queryParameters: any = {};