Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Commit

Permalink
Added createMatrixCreateRoomResponseDTO() for heusalagroup/hghs#13
Browse files Browse the repository at this point in the history
  • Loading branch information
thejhh committed Apr 24, 2022
1 parent 14802fd commit ce684a2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions types/response/createRoom/MatrixCreateRoomResponseDTO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ export interface MatrixCreateRoomResponseDTO {
readonly room_alias ?: MatrixRoomAlias;
}

export function createMatrixCreateRoomResponseDTO (
room_id : MatrixRoomId,
room_alias ?: MatrixRoomAlias
) {
return {
room_id,
room_alias
};
}

export function isMatrixCreateRoomResponseDTO (value: any): value is MatrixCreateRoomResponseDTO {
return (
isRegularObject(value)
Expand Down

0 comments on commit ce684a2

Please sign in to comment.