1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-09 10:22:46 +03:00

Fix types

This commit is contained in:
David Baker
2022-10-26 12:01:53 +01:00
parent 384116c8f5
commit 0f1012278a

View File

@@ -28,6 +28,7 @@ import {
WidgetApiToWidgetAction, WidgetApiToWidgetAction,
MatrixCapabilities, MatrixCapabilities,
ITurnServer, ITurnServer,
IRoomEvent,
} from "matrix-widget-api"; } from "matrix-widget-api";
import { createRoomWidgetClient, MsgType } from "../../src/matrix"; import { createRoomWidgetClient, MsgType } from "../../src/matrix";
@@ -184,7 +185,7 @@ describe("RoomWidgetClient", () => {
it("backfills", async () => { it("backfills", async () => {
widgetApi.readStateEvents.mockImplementation(async (eventType, limit, stateKey) => widgetApi.readStateEvents.mockImplementation(async (eventType, limit, stateKey) =>
eventType === "org.example.foo" && (limit ?? Infinity) > 0 && stateKey === "bar" eventType === "org.example.foo" && (limit ?? Infinity) > 0 && stateKey === "bar"
? [event] ? [event as IRoomEvent]
: [], : [],
); );