diff --git a/src/main/resources/handlebars/typescript-fetch/api.mustache b/src/main/resources/handlebars/typescript-fetch/api.mustache index 1ada41f11e..4a929dfd5d 100644 --- a/src/main/resources/handlebars/typescript-fetch/api.mustache +++ b/src/main/resources/handlebars/typescript-fetch/api.mustache @@ -61,7 +61,7 @@ export class BaseAPI { * @extends {Error} */ export class RequiredError extends Error { - name: "RequiredError" + name = "RequiredError" constructor(public field: string, msg?: string) { super(msg); }