Add return type

This commit is contained in:
RMidhunSuresh 2022-02-22 16:53:52 +05:30
parent 7a24059337
commit 52f0690c70
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}