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"