From ad0b90b2c1d7c5283186eb8ce686de37f7437180 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 28 Nov 2023 16:46:46 +0000 Subject: [PATCH] Fix types Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- package.json | 1 + src/@types/global.d.ts | 3 --- yarn.lock | 5 +++++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 99e0e11628..780d7d7177 100644 --- a/package.json +++ b/package.json @@ -232,6 +232,7 @@ "typescript": "5.2.2" }, "peerDependencies": { + "@matrix-org/olm": "3.2.15", "postcss": "^8.4.19", "webpack": "^4.0.0 || ^5.0.0" }, diff --git a/src/@types/global.d.ts b/src/@types/global.d.ts index 39e1eacbc8..b1c8a4ec14 100644 --- a/src/@types/global.d.ts +++ b/src/@types/global.d.ts @@ -58,9 +58,6 @@ declare global { interface Window { matrixChat: ReturnType; mxMatrixClientPeg: IMatrixClientPeg; - Olm: { - init: () => Promise; - }; mxReactSdkConfig: DeepReadonly; // Needed for Safari, unknown to TypeScript diff --git a/yarn.lock b/yarn.lock index 6a293ab58a..b93944f78b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1870,6 +1870,11 @@ resolved "https://registry.yarnpkg.com/@matrix-org/matrix-wysiwyg/-/matrix-wysiwyg-2.17.0.tgz#68c83da17826fb43828f0c1ddd8d6e0b9d155ae5" integrity sha512-PZGSrNqKCSdUnyUVglEvHrV8uowU3JuWUlYYKBslYnnIrJHw9aS2nnCpLVqwACFD6N82+L+Net8ME9i3qy7BGQ== +"@matrix-org/olm@3.2.15": + version "3.2.15" + resolved "https://registry.yarnpkg.com/@matrix-org/olm/-/olm-3.2.15.tgz#55f3c1b70a21bbee3f9195cecd6846b1083451ec" + integrity sha512-S7lOrndAK9/8qOtaTq/WhttJC/o4GAzdfK0MUPpo8ApzsJEC0QjtwrkC3KBXdFP1cD1MXi/mlKR7aaoVMKgs6Q== + "@matrix-org/react-sdk-module-api@^2.2.1": version "2.2.1" resolved "https://registry.yarnpkg.com/@matrix-org/react-sdk-module-api/-/react-sdk-module-api-2.2.1.tgz#308bcb42a780200d3e7994235376784b51819379"