diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAngularClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAngularClientCodegen.java index 0c83302f7c4..a00b28395f6 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAngularClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAngularClientCodegen.java @@ -293,7 +293,7 @@ public class TypeScriptAngularClientCodegen extends AbstractTypeScriptClientCode // Set the typescript version compatible to the Angular version if (ngVersion.atLeast("12.0.0")) { - additionalProperties.put("tsVersion", ">=4.2.3 <4.3.0"); + additionalProperties.put("tsVersion", ">=4.3.0 <4.4.0"); } else if (ngVersion.atLeast("11.0.0")) { additionalProperties.put("tsVersion", ">=4.0.0 <4.1.0"); } else if (ngVersion.atLeast("10.0.0")) { diff --git a/samples/client/petstore/typescript-angular-v12-provided-in-root/builds/with-npm/package.json b/samples/client/petstore/typescript-angular-v12-provided-in-root/builds/with-npm/package.json index 8c565707886..69a4fcbf2b3 100644 --- a/samples/client/petstore/typescript-angular-v12-provided-in-root/builds/with-npm/package.json +++ b/samples/client/petstore/typescript-angular-v12-provided-in-root/builds/with-npm/package.json @@ -25,7 +25,7 @@ "reflect-metadata": "^0.1.3", "rxjs": "^6.6.0", "tsickle": "^0.43.0", - "typescript": ">=4.2.3 <4.3.0", + "typescript": ">=4.3.0 <4.4.0", "zone.js": "^0.11.4" }, "publishConfig": {