From 3d9a8be86791e7dc807fe48e23fbeeb2748476a7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Jul 2022 11:21:04 -0700 Subject: [PATCH] chore(deps-dev): bump typescript from 4.4.4 to 4.7.4 (#3866) * chore(deps-dev): bump typescript from 4.4.4 to 4.7.4 Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.4.4 to 4.7.4. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v4.4.4...v4.7.4) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * tsc * tsc Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tom Moor --- app/models/User.ts | 2 +- app/stores/UiStore.ts | 2 +- package.json | 2 +- shared/editor/lib/ExtensionManager.ts | 1 + yarn.lock | 8 ++++---- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/app/models/User.ts b/app/models/User.ts index d920aec55..c1753d722 100644 --- a/app/models/User.ts +++ b/app/models/User.ts @@ -1,5 +1,5 @@ import { computed, observable } from "mobx"; -import { Role } from "@shared/types"; +import type { Role } from "@shared/types"; import ParanoidModel from "./ParanoidModel"; import Field from "./decorators/Field"; diff --git a/app/stores/UiStore.ts b/app/stores/UiStore.ts index 8186dd803..1c7abc676 100644 --- a/app/stores/UiStore.ts +++ b/app/stores/UiStore.ts @@ -1,7 +1,7 @@ import { action, autorun, computed, observable } from "mobx"; import { light as defaultTheme } from "@shared/styles/theme"; import Document from "~/models/Document"; -import { ConnectionStatus } from "~/scenes/Document/components/MultiplayerEditor"; +import type { ConnectionStatus } from "~/scenes/Document/components/MultiplayerEditor"; import Storage from "~/utils/Storage"; const UI_STORE = "UI_STORE"; diff --git a/package.json b/package.json index a8f430991..e29f71f88 100644 --- a/package.json +++ b/package.json @@ -323,7 +323,7 @@ "react-refresh": "^0.9.0", "rimraf": "^2.5.4", "terser-webpack-plugin": "^4.1.0", - "typescript": "^4.4.4", + "typescript": "^4.7.4", "url-loader": "^0.6.2", "webpack": "4.44.1", "webpack-cli": "^3.3.12", diff --git a/shared/editor/lib/ExtensionManager.ts b/shared/editor/lib/ExtensionManager.ts index 1c1ef1e6e..bf4bd2a5c 100644 --- a/shared/editor/lib/ExtensionManager.ts +++ b/shared/editor/lib/ExtensionManager.ts @@ -26,6 +26,7 @@ export default class ExtensionManager { let extension; if (typeof ext === "function") { + // @ts-expect-error We won't instantiate an abstract class extension = new ext(editor?.props); } else { extension = ext; diff --git a/yarn.lock b/yarn.lock index d67e21aa1..2a059ae8b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -14578,10 +14578,10 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= -typescript@^4.2.4, typescript@^4.4.4: - version "4.4.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.4.tgz#2cd01a1a1f160704d3101fd5a58ff0f9fcb8030c" - integrity sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA== +typescript@^4.2.4, typescript@^4.7.4: + version "4.7.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235" + integrity sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ== uc.micro@^1.0.1, uc.micro@^1.0.5: version "1.0.6"