Fix DelayedEventInfo type (#4446)

* 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
This commit is contained in:
Andrew Ferrazzutti
2024-10-15 17:06:36 -04:00
committed by GitHub
parent aabd558bce
commit 5f599ee978
+3 -5
View File
@@ -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;
};