diff --git a/package.json b/package.json index 132f02a69..c8ddcece3 100644 --- a/package.json +++ b/package.json @@ -125,7 +125,7 @@ "tsify": "^5.0.2", "typedoc": "^0.23.20", "typedoc-plugin-missing-exports": "^1.0.0", - "typescript": "^4.5.3" + "typescript": "^5.0.0" }, "jest": { "testEnvironment": "node", diff --git a/spec/setupTests.ts b/spec/setupTests.ts index 2557be755..20c03b8ef 100644 --- a/spec/setupTests.ts +++ b/spec/setupTests.ts @@ -16,7 +16,7 @@ limitations under the License. import DOMException from "domexception"; -global.DOMException = DOMException; +global.DOMException = DOMException as typeof global.DOMException; jest.mock("../src/http-api/utils", () => ({ ...jest.requireActual("../src/http-api/utils"), diff --git a/spec/unit/http-api/index.spec.ts b/spec/unit/http-api/index.spec.ts index cef31ffea..cbaa15aa4 100644 --- a/spec/unit/http-api/index.spec.ts +++ b/spec/unit/http-api/index.spec.ts @@ -14,7 +14,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -import DOMException from "domexception"; import { mocked } from "jest-mock"; import { ClientPrefix, MatrixHttpApi, Method, UploadResponse } from "../../../src"; @@ -33,8 +32,6 @@ describe("MatrixHttpApi", () => { const DONE = 0; - global.DOMException = DOMException; - beforeEach(() => { xhr = { upload: {} as XMLHttpRequestUpload, diff --git a/yarn.lock b/yarn.lock index 137dd3443..1f675c148 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7332,11 +7332,16 @@ typescript@^3.2.2: resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.10.tgz#70f3910ac7a51ed6bef79da7800690b19bf778b8" integrity sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q== -typescript@^4.5.3, typescript@^4.5.4: +typescript@^4.5.4: version "4.9.5" resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== +typescript@^5.0.0: + version "5.0.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.3.tgz#fe976f0c826a88d0a382007681cbb2da44afdedf" + integrity sha512-xv8mOEDnigb/tN9PSMTwSEqAnUvkoXMQlicOb0IUVDBSQCgBSaAAROUZYy2IcUy5qU6XajK5jjjO7TMWqBTKZA== + typeson-registry@^1.0.0-alpha.20: version "1.0.0-alpha.39" resolved "https://registry.yarnpkg.com/typeson-registry/-/typeson-registry-1.0.0-alpha.39.tgz#9e0f5aabd5eebfcffd65a796487541196f4b1211"