1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00
Peertube/shared/models/redundancy/videos-redundancy.model.ts
2018-09-14 11:05:38 +02:00

19 lines
471 B
TypeScript

export type VideoRedundancyStrategy = 'most-views' | 'trending' | 'recently-added'
export type MostViewsRedundancyStrategy = {
strategy: 'most-views'
size: number
}
export type TrendingRedundancyStrategy = {
strategy: 'trending'
size: number
}
export type RecentlyAddedStrategy = {
strategy: 'recently-added'
size: number
minViews: number
}
export type VideosRedundancy = MostViewsRedundancyStrategy | TrendingRedundancyStrategy | RecentlyAddedStrategy