forked from mystiq/hydrogen-web
Add return type
This commit is contained in:
parent
7a24059337
commit
52f0690c70
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ function roomsSegmentWithRoom(rooms: Segment<SegmentType, "rooms">, roomId: stri
|
|||
}
|
||||
}
|
||||
|
||||
function pushRightPanelSegment<T extends keyof SegmentType>(array: Segment<SegmentType>[], segment: T, ...value: OptionalValue<SegmentType[T]>) {
|
||||
function pushRightPanelSegment<T extends keyof SegmentType>(array: Segment<SegmentType>[], segment: T, ...value: OptionalValue<SegmentType[T]>): void {
|
||||
array.push(new Segment("right-panel"));
|
||||
array.push(new Segment(segment, ...value));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue