mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-03 14:10:56 +00:00
Merge pull request #4276 from ChrisJamesC/cc-fix-lint
Typescript-fetch - fix linting issues
This commit is contained in:
commit
5b4f81f13a
@ -25,7 +25,7 @@ export class BaseAPI {
|
|||||||
this.basePath = basePath;
|
this.basePath = basePath;
|
||||||
this.fetch = fetch;
|
this.fetch = fetch;
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
{{#models}}
|
{{#models}}
|
||||||
{{#model}}
|
{{#model}}
|
||||||
@ -118,7 +118,7 @@ export const {{classname}}FetchParamCreactor = {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
{{/operation}}
|
{{/operation}}
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {{classname}} - functional programming interface{{#description}}
|
* {{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);
|
return {{classname}}Fp.{{nickname}}({{#hasParams}}params{{/hasParams}})(fetch, basePath);
|
||||||
},
|
},
|
||||||
{{/operation}}
|
{{/operation}}
|
||||||
}
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
{{/operations}}
|
{{/operations}}
|
||||||
|
@ -34,7 +34,7 @@ export class BaseAPI {
|
|||||||
this.basePath = basePath;
|
this.basePath = basePath;
|
||||||
this.fetch = fetch;
|
this.fetch = fetch;
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
export interface Category {
|
export interface Category {
|
||||||
"id"?: number;
|
"id"?: number;
|
||||||
@ -293,7 +293,7 @@ export const PetApiFetchParamCreactor = {
|
|||||||
options: fetchOptions,
|
options: fetchOptions,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PetApi - functional programming interface
|
* PetApi - functional programming interface
|
||||||
@ -591,7 +591,7 @@ export const PetApiFactory = function (fetch?: FetchAPI, basePath?: string) {
|
|||||||
uploadFile(params: { petId: number; additionalMetadata?: string; file?: any; }) {
|
uploadFile(params: { petId: number; additionalMetadata?: string; file?: any; }) {
|
||||||
return PetApiFp.uploadFile(params)(fetch, basePath);
|
return PetApiFp.uploadFile(params)(fetch, basePath);
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -688,7 +688,7 @@ export const StoreApiFetchParamCreactor = {
|
|||||||
options: fetchOptions,
|
options: fetchOptions,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* StoreApi - functional programming interface
|
* StoreApi - functional programming interface
|
||||||
@ -836,7 +836,7 @@ export const StoreApiFactory = function (fetch?: FetchAPI, basePath?: string) {
|
|||||||
placeOrder(params: { body?: Order; }) {
|
placeOrder(params: { body?: Order; }) {
|
||||||
return StoreApiFp.placeOrder(params)(fetch, basePath);
|
return StoreApiFp.placeOrder(params)(fetch, basePath);
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1032,7 +1032,7 @@ export const UserApiFetchParamCreactor = {
|
|||||||
options: fetchOptions,
|
options: fetchOptions,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* UserApi - functional programming interface
|
* UserApi - functional programming interface
|
||||||
@ -1318,6 +1318,6 @@ export const UserApiFactory = function (fetch?: FetchAPI, basePath?: string) {
|
|||||||
updateUser(params: { username: string; body?: User; }) {
|
updateUser(params: { username: string; body?: User; }) {
|
||||||
return UserApiFp.updateUser(params)(fetch, basePath);
|
return UserApiFp.updateUser(params)(fetch, basePath);
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user