From f12cee984ab76773f7202f661cc7d5e3101cc03a Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Tue, 21 Mar 2023 12:10:28 -0500 Subject: [PATCH] Export `TimestampToEventResponse` to use in `matrix-react-sdk` tests (#3223) * Export ITimestampToEventResponse to use in matrix-react-sdk tests Part of https://github.com/matrix-org/matrix-react-sdk/pull/10405 * Remove I from interface As suggested by @weeman1337, https://github.com/matrix-org/matrix-js-sdk/pull/3223#pullrequestreview-1350612347 See code style guide, https://github.com/vector-im/element-web/blob/50f8be4a623d2280a72920eb1679a4754961f807/code_style.md#typescript--javascript-typescript-javascript > Interface names should not be marked with an uppercase `I`. --- src/client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.ts b/src/client.ts index 43e659433..132be9550 100644 --- a/src/client.ts +++ b/src/client.ts @@ -837,7 +837,7 @@ interface IRoomHierarchy { next_batch?: string; } -interface ITimestampToEventResponse { +export interface TimestampToEventResponse { event_id: string; origin_server_ts: string; } @@ -9541,7 +9541,7 @@ export class MatrixClient extends TypedEventEmitter { + ): Promise { const path = utils.encodeUri("/rooms/$roomId/timestamp_to_event", { $roomId: roomId, });