Skip to content

Commit b776bc9

Browse files
committed
refactor: add doc and use existing types
1 parent 02bd69d commit b776bc9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/modules/BuiltinsApi.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ import { MatrixClientPeg } from "../MatrixClientPeg";
1212
import type { Room } from "matrix-js-sdk/src/matrix";
1313

1414
interface RoomViewPropsWithRoomId extends RoomViewProps {
15+
/**
16+
* The ID of the room to display
17+
*/
1518
roomId?: string;
1619
}
1720

@@ -26,9 +29,8 @@ interface Components {
2629
}
2730

2831
export class ElementWebBuiltinsApi implements BuiltinsApi {
29-
private _roomView?: React.ComponentType<RoomViewPropsWithRoomId>;
30-
private _roomAvatar?: React.ComponentType<RoomAvatarProps>;
31-
32+
private _roomView?: Components["roomView"];
33+
private _roomAvatar?: Components["roomAvatar"];
3234
/**
3335
* Sets the components used by the API.
3436
*

0 commit comments

Comments
 (0)