chore(deps): update dependency typescript to v5 (#3387)
* chore(deps): update dependency typescript to v5 * fix: resolve type mismatch * Commit updated API documentation --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Gabe Kangas <gabek@real-ity.com> Co-authored-by: Owncast <owncast@owncast.online>
This commit is contained in:
@@ -25,7 +25,7 @@ const WifiOutlined = dynamic(() => import('@ant-design/icons/WifiOutlined'), {
|
||||
|
||||
interface TimedValue {
|
||||
time: Date;
|
||||
value: Number;
|
||||
value: number;
|
||||
}
|
||||
|
||||
interface DescriptionBoxProps {
|
||||
@@ -60,7 +60,7 @@ const StreamHealth = () => {
|
||||
const [minimumPlayerBitrate, setMinimumPlayerBitrate] = useState<TimedValue[]>([]);
|
||||
const [medianPlayerBitrate, setMedianPlayerBitrate] = useState<TimedValue[]>([]);
|
||||
const [maximumPlayerBitrate, setMaximumPlayerBitrate] = useState<TimedValue[]>([]);
|
||||
const [availableBitrates, setAvailableBitrates] = useState<Number[]>([]);
|
||||
const [availableBitrates, setAvailableBitrates] = useState<number[]>([]);
|
||||
const [segmentLength, setSegmentLength] = useState(0);
|
||||
|
||||
const getMetrics = async () => {
|
||||
@@ -292,7 +292,7 @@ const StreamHealth = () => {
|
||||
<div style={statStyle}>
|
||||
<Statistic
|
||||
title="Viewer Playback Speed"
|
||||
value={currentSpeed.toString()}
|
||||
value={(currentSpeed ?? 0).toString()}
|
||||
prefix={<WifiOutlined style={{ marginRight: '5px' }} />}
|
||||
precision={0}
|
||||
suffix="kbps"
|
||||
|
||||
Reference in New Issue
Block a user