Chocobozzz/PeerTube

View on GitHub
packages/models/src/overviews/videos-overview.model.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Video, VideoChannelSummary, VideoConstant } from '../videos/index.js'

export interface ChannelOverview {
  channel: VideoChannelSummary
  videos: Video[]
}

export interface CategoryOverview {
  category: VideoConstant<number>
  videos: Video[]
}

export interface TagOverview {
  tag: string
  videos: Video[]
}

export interface VideosOverview {
  channels: ChannelOverview[]

  categories: CategoryOverview[]

  tags: TagOverview[]
}