Skip to content

Commit f12cee9

Browse files
Export TimestampToEventResponse to use in matrix-react-sdk tests (#3223)
* Export ITimestampToEventResponse to use in matrix-react-sdk tests Part of matrix-org/matrix-react-sdk#10405 * Remove I from interface As suggested by @weeman1337, #3223 (review) 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`.
1 parent c3b4572 commit f12cee9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ interface IRoomHierarchy {
837837
next_batch?: string;
838838
}
839839

840-
interface ITimestampToEventResponse {
840+
export interface TimestampToEventResponse {
841841
event_id: string;
842842
origin_server_ts: string;
843843
}
@@ -9541,7 +9541,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
95419541
roomId: string,
95429542
timestamp: number,
95439543
dir: Direction,
9544-
): Promise<ITimestampToEventResponse> {
9544+
): Promise<TimestampToEventResponse> {
95459545
const path = utils.encodeUri("/rooms/$roomId/timestamp_to_event", {
95469546
$roomId: roomId,
95479547
});

0 commit comments

Comments
 (0)