You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +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:
@@ -837,7 +837,7 @@ interface IRoomHierarchy {
|
|||||||
next_batch?: string;
|
next_batch?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ITimestampToEventResponse {
|
export interface TimestampToEventResponse {
|
||||||
event_id: string;
|
event_id: string;
|
||||||
origin_server_ts: string;
|
origin_server_ts: string;
|
||||||
}
|
}
|
||||||
@@ -9541,7 +9541,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
|
|||||||
roomId: string,
|
roomId: string,
|
||||||
timestamp: number,
|
timestamp: number,
|
||||||
dir: Direction,
|
dir: Direction,
|
||||||
): Promise<ITimestampToEventResponse> {
|
): Promise<TimestampToEventResponse> {
|
||||||
const path = utils.encodeUri("/rooms/$roomId/timestamp_to_event", {
|
const path = utils.encodeUri("/rooms/$roomId/timestamp_to_event", {
|
||||||
$roomId: roomId,
|
$roomId: roomId,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user