We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c8ab7ac + 612f1d4 commit d97e6c6Copy full SHA for d97e6c6
modules/swagger-codegen/src/main/resources/typescript-fetch/api.mustache
@@ -44,7 +44,7 @@ export interface FetchArgs {
44
* @class BaseAPI
45
*/
46
export class BaseAPI {
47
- protected configuration: Configuration;
+ protected configuration?: Configuration;
48
49
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected fetch: FetchAPI = portableFetch) {
50
if (configuration) {
@@ -61,7 +61,7 @@ export class BaseAPI {
61
* @extends {Error}
62
63
export class RequiredError extends Error {
64
- name: "RequiredError"
+ name = "RequiredError"
65
constructor(public field: string, msg?: string) {
66
super(msg);
67
}
0 commit comments