Merge pull request #4276 from ChrisJamesC/cc-fix-lint

Typescript-fetch - fix linting issues
This commit is contained in:
wing328 2016-11-29 08:52:20 +08:00 committed by GitHub
commit 5b4f81f13a
2 changed files with 12 additions and 12 deletions

View File

@ -14,7 +14,7 @@ const BASE_PATH = "{{{basePath}}}".replace(/\/+$/, '');
export interface FetchArgs {
url: string;
options: any;
options: any;
}
export class BaseAPI {
@ -25,7 +25,7 @@ export class BaseAPI {
this.basePath = basePath;
this.fetch = fetch;
}
}
};
{{#models}}
{{#model}}
@ -118,7 +118,7 @@ export const {{classname}}FetchParamCreactor = {
};
},
{{/operation}}
}
};
/**
* {{classname}} - functional programming interface{{#description}}
@ -179,7 +179,7 @@ export const {{classname}}Factory = function (fetch?: FetchAPI, basePath?: strin
return {{classname}}Fp.{{nickname}}({{#hasParams}}params{{/hasParams}})(fetch, basePath);
},
{{/operation}}
}
};
};
{{/operations}}

View File

@ -23,7 +23,7 @@ const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, '');
export interface FetchArgs {
url: string;
options: any;
options: any;
}
export class BaseAPI {
@ -34,7 +34,7 @@ export class BaseAPI {
this.basePath = basePath;
this.fetch = fetch;
}
}
};
export interface Category {
"id"?: number;
@ -293,7 +293,7 @@ export const PetApiFetchParamCreactor = {
options: fetchOptions,
};
},
}
};
/**
* PetApi - functional programming interface
@ -591,7 +591,7 @@ export const PetApiFactory = function (fetch?: FetchAPI, basePath?: string) {
uploadFile(params: { petId: number; additionalMetadata?: string; file?: any; }) {
return PetApiFp.uploadFile(params)(fetch, basePath);
},
}
};
};
@ -688,7 +688,7 @@ export const StoreApiFetchParamCreactor = {
options: fetchOptions,
};
},
}
};
/**
* StoreApi - functional programming interface
@ -836,7 +836,7 @@ export const StoreApiFactory = function (fetch?: FetchAPI, basePath?: string) {
placeOrder(params: { body?: Order; }) {
return StoreApiFp.placeOrder(params)(fetch, basePath);
},
}
};
};
@ -1032,7 +1032,7 @@ export const UserApiFetchParamCreactor = {
options: fetchOptions,
};
},
}
};
/**
* UserApi - functional programming interface
@ -1318,6 +1318,6 @@ export const UserApiFactory = function (fetch?: FetchAPI, basePath?: string) {
updateUser(params: { username: string; body?: User; }) {
return UserApiFp.updateUser(params)(fetch, basePath);
},
}
};
};