mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-02 21:50:55 +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.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}}
|
||||
|
@ -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);
|
||||
},
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user