From d45cb13107ebc1a709f9a583065b39eb0cadea3f Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 18 Jan 2022 12:52:02 +0100 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrik Oldsberg Co-authored-by: Fredrik Adelöw --- .changeset/clever-olives-shake.md | 2 +- .changeset/stupid-baboons-hug.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.changeset/clever-olives-shake.md b/.changeset/clever-olives-shake.md index cc4aae4c3e..bb3641923d 100644 --- a/.changeset/clever-olives-shake.md +++ b/.changeset/clever-olives-shake.md @@ -13,7 +13,7 @@ Removed the `typescript` dependency from the Backstage CLI in order to decouple We recommend using a `~` version range since TypeScript releases do not adhere to semver. -It may be the case that you end up with errors if upgrade the TypeScript version. This is because there was a change to TypeScript not long ago that defaulted the type of errors caught in `catch` blocks to `unknown`. You can work around this by adding `"useUnknownInCatchVariables": false` to the `"compilerOptions"` in your `tsconfig.json`: +It may be the case that you end up with errors if you upgrade the TypeScript version. This is because there was a change to TypeScript not long ago that defaulted the type of errors caught in `catch` blocks to `unknown`. You can work around this by adding `"useUnknownInCatchVariables": false` to the `"compilerOptions"` in your `tsconfig.json`: ```json "compilerOptions": { diff --git a/.changeset/stupid-baboons-hug.md b/.changeset/stupid-baboons-hug.md index bd9afd2552..22b4ee508f 100644 --- a/.changeset/stupid-baboons-hug.md +++ b/.changeset/stupid-baboons-hug.md @@ -15,7 +15,7 @@ To apply this change in an existing app, add a `typescript` dependency to your ` We recommend using a `~` version range since TypeScript releases do not adhere to semver. -It may be the case that you end up with errors if upgrade the TypeScript version. This is because there was a change to TypeScript not long ago that defaulted the type of errors caught in `catch` blocks to `unknown`. You can work around this by adding `"useUnknownInCatchVariables": false` to the `"compilerOptions"` in your `tsconfig.json`: +It may be the case that you end up with errors if you upgrade the TypeScript version. This is because there was a change to TypeScript not long ago that defaulted the type of errors caught in `catch` blocks to `unknown`. You can work around this by adding `"useUnknownInCatchVariables": false` to the `"compilerOptions"` in your `tsconfig.json`: ```json "compilerOptions": {