Update Typescript node samples

This commit is contained in:
Mads Mætzke Tandrup 2015-07-27 10:19:12 +02:00
parent fde5c60cb0
commit 09ccf12a3b
No known key found for this signature in database
GPG Key ID: 67056F406C84B14B

View File

@ -121,8 +121,8 @@ export class UserApi {
private basePath = '/v2'; private basePath = '/v2';
public authentications = { public authentications = {
'default': <Authentication>new VoidAuth(), 'default': <Authentication>new VoidAuth(),
'api_key': <Authentication>new ApiKeyAuth('header', 'api_key'), 'api_key': new ApiKeyAuth('header', 'api_key'),
'petstore_auth': <Authentication>new OAuth(), 'petstore_auth': new OAuth(),
} }
constructor(url: string, basePath?: string); constructor(url: string, basePath?: string);
@ -138,7 +138,6 @@ export class UserApi {
} }
} }
set apiKey(key: string) { set apiKey(key: string) {
this.authentications.api_key.apiKey = key; this.authentications.api_key.apiKey = key;
} }
@ -532,8 +531,8 @@ export class PetApi {
private basePath = '/v2'; private basePath = '/v2';
public authentications = { public authentications = {
'default': <Authentication>new VoidAuth(), 'default': <Authentication>new VoidAuth(),
'api_key': <Authentication>new ApiKeyAuth('header', 'api_key'), 'api_key': new ApiKeyAuth('header', 'api_key'),
'petstore_auth': <Authentication>new OAuth(), 'petstore_auth': new OAuth(),
} }
constructor(url: string, basePath?: string); constructor(url: string, basePath?: string);
@ -549,7 +548,6 @@ export class PetApi {
} }
} }
set apiKey(key: string) { set apiKey(key: string) {
this.authentications.api_key.apiKey = key; this.authentications.api_key.apiKey = key;
} }
@ -985,8 +983,8 @@ export class StoreApi {
private basePath = '/v2'; private basePath = '/v2';
public authentications = { public authentications = {
'default': <Authentication>new VoidAuth(), 'default': <Authentication>new VoidAuth(),
'api_key': <Authentication>new ApiKeyAuth('header', 'api_key'), 'api_key': new ApiKeyAuth('header', 'api_key'),
'petstore_auth': <Authentication>new OAuth(), 'petstore_auth': new OAuth(),
} }
constructor(url: string, basePath?: string); constructor(url: string, basePath?: string);
@ -1002,7 +1000,6 @@ export class StoreApi {
} }
} }
set apiKey(key: string) { set apiKey(key: string) {
this.authentications.api_key.apiKey = key; this.authentications.api_key.apiKey = key;
} }