Skip to content

Commit

Permalink
Fix DelayedEventInfo type (#4446)
Browse files Browse the repository at this point in the history
* Fix DelayedEventInfo type

for MSC4140's GET /delayed_events

* Satisfy linter while avoiding unaligned indents

* Remove transaction_id from DelayedEventInfo

See matrix-org/matrix-spec-proposals@883e6b5d
  • Loading branch information
AndrewFerr authored Oct 15, 2024
1 parent aabd558 commit 5f599ee
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/@types/requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,18 +111,16 @@ type DelayedPartialTimelineEvent = {

type DelayedPartialStateEvent = DelayedPartialTimelineEvent & {
state_key: string;
transaction_id: string;
};

type DelayedPartialEvent = DelayedPartialTimelineEvent | DelayedPartialStateEvent;

export type DelayedEventInfo = {
delayed_events: DelayedPartialEvent &
delayed_events: (DelayedPartialEvent &
SendDelayedEventResponse &
SendDelayedEventRequestOpts &
{
SendDelayedEventRequestOpts & {
running_since: number;
}[];
})[];
next_batch?: string;
};

Expand Down

0 comments on commit 5f599ee

Please sign in to comment.