You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-08-07 23:02:56 +03:00
Fix types
This commit is contained in:
@@ -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]
|
||||||
: [],
|
: [],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user