You've already forked matrix-js-sdk
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user