typecheck

This commit is contained in:
7w1 committed 2026-06-15 14:52:52 -05:00
1 parent fa8cb07c46
commit 44250f9205
1 file changed
+3 -3
+3 -3
View File
@@ -15,7 +15,7 @@ const createMessageEvent = (id: string, body: string, sender = '@alice:example.c
getRelation: () => undefined,
isRedaction: () => false,
isRedacted: () => false,
}) as MatrixEvent;
}) as unknown as MatrixEvent;
const createReactionEvent = (id: string, targetId: string) =>
({
@@ -43,7 +43,7 @@ const createReactionEvent = (id: string, targetId: string) =>
}),
isRedaction: () => false,
isRedacted: () => false,
}) as MatrixEvent;
}) as unknown as MatrixEvent;
const createEditEvent = (id: string, targetId: string, newBody: string) =>
({
@@ -70,7 +70,7 @@ const createEditEvent = (id: string, targetId: string, newBody: string) =>
}),
isRedaction: () => false,
isRedacted: () => false,
}) as MatrixEvent;
}) as unknown as MatrixEvent;
const createTimelineSet = (
events: Record<string, MatrixEvent>,