1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Convert Room and RoomState to Typescript

This commit is contained in:
Michael Telatynski
2021-06-18 15:29:45 +01:00
parent 2c6858f149
commit 7aa5a79c86
9 changed files with 3149 additions and 3105 deletions

View File

@@ -70,11 +70,15 @@ interface IContent {
"m.relates_to"?: IEventRelation;
}
type StrippedState = Required<Pick<IEvent, "content" | "state_key" | "type" | "sender">>;
interface IUnsigned {
age?: number;
prev_sender?: string;
prev_content?: IContent;
redacted_because?: IEvent;
transaction_id?: string;
invite_room_state?: StrippedState[];
}
export interface IEvent {