1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

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, 50f8be4a62/code_style.md (typescript--javascript-typescript-javascript)

> Interface names should not be marked with an uppercase `I`.
This commit is contained in:
Eric Eastwood
2023-03-21 12:10:28 -05:00
committed by GitHub
parent c3b4572841
commit f12cee984a

View File

@@ -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<EmittedEvents, ClientEventHa
roomId: string,
timestamp: number,
dir: Direction,
): Promise<ITimestampToEventResponse> {
): Promise<TimestampToEventResponse> {
const path = utils.encodeUri("/rooms/$roomId/timestamp_to_event", {
$roomId: roomId,
});