Skip to content

Commit

Permalink
Update IUnsigned type to be extensible (#3547)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Jul 7, 2023
1 parent 5b635df commit 30dd289
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/models/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@ export interface IContent {
type StrippedState = Required<Pick<IEvent, "content" | "state_key" | "type" | "sender">>;

export interface IUnsigned {
[key: string]: any;
"age"?: number;
"prev_sender"?: string;
"prev_content"?: IContent;
"redacted_because"?: IEvent;
"replaces_state"?: string;
"transaction_id"?: string;
"invite_room_state"?: StrippedState[];
"m.relations"?: Record<RelationType | string, any>; // No common pattern for aggregated relations
Expand Down

0 comments on commit 30dd289

Please sign in to comment.