1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-07 23:02:56 +03:00

Improve types for sendStateEvent (#4105)

This commit is contained in:
Michael Telatynski
2024-03-20 14:27:27 +00:00
committed by GitHub
parent afc3c6213b
commit d908036f50
12 changed files with 301 additions and 42 deletions

View File

@@ -75,6 +75,14 @@ class MockWidgetApi extends EventEmitter {
public transport = { reply: jest.fn() };
}
declare module "../../src/types" {
interface StateEvents {
"org.example.foo": {
hello: string;
};
}
}
describe("RoomWidgetClient", () => {
let widgetApi: MockedObject<WidgetApi>;
let client: MatrixClient;