diff --git a/bin/configs/typescript-fetch-with-npm-version.yaml b/bin/configs/typescript-fetch-with-npm-version.yaml index cd669c5e0d2a..45d0d64ac88c 100644 --- a/bin/configs/typescript-fetch-with-npm-version.yaml +++ b/bin/configs/typescript-fetch-with-npm-version.yaml @@ -7,3 +7,4 @@ additionalProperties: npmName: '@openapitools/typescript-fetch-petstore' npmRepository: https://skimdb.npmjs.com/registry snapshot: false + ignoreDeprecations: "5.0" diff --git a/modules/openapi-generator/src/main/resources/typescript-fetch/tsconfig.mustache b/modules/openapi-generator/src/main/resources/typescript-fetch/tsconfig.mustache index a8778b096590..7ae886030afe 100644 --- a/modules/openapi-generator/src/main/resources/typescript-fetch/tsconfig.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-fetch/tsconfig.mustache @@ -2,6 +2,9 @@ "compilerOptions": { "declaration": true, "target": "{{#supportsES6}}es6{{/supportsES6}}{{^supportsES6}}es5{{/supportsES6}}", + {{#ignoreDeprecations}} + "ignoreDeprecations": "{{{.}}}", + {{/ignoreDeprecations}} {{#sagasAndRecords}} "strict": true, {{/sagasAndRecords}} diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/tsconfig.json b/samples/client/petstore/typescript-fetch/builds/with-npm-version/tsconfig.json index 4567ec19899a..bd484b7075a0 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/tsconfig.json +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/tsconfig.json @@ -2,6 +2,7 @@ "compilerOptions": { "declaration": true, "target": "es5", + "ignoreDeprecations": "5.0", "module": "commonjs", "moduleResolution": "node", "outDir": "dist",