You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
main
${ noResults }
17 lines
398 B
TypeScript
17 lines
398 B
TypeScript
import { VideoStatsTimeserieMetric } from '@peertube/peertube-models'
|
|||
|
|||
const validMetrics = new Set<VideoStatsTimeserieMetric>([
|
|||
'viewers',
|
|||
'aggregateWatchTime'
|
|||
])
|
|||
|
|||
function isValidStatTimeserieMetric (value: VideoStatsTimeserieMetric) {
|
|||
return validMetrics.has(value)
|
|||
}
|
|||
|
|||
// ---------------------------------------------------------------------------
|
|||
|
|||
export {
|
|||
isValidStatTimeserieMetric
|
|||
}
|