]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/overviews/videos-overview.ts
Update channel updatedAt when uploading a video
[github/Chocobozzz/PeerTube.git] / shared / models / overviews / videos-overview.ts
index e725f166bbce01485ac05572c77b063c8bf91ffd..0f3cb4a52966efd07dfcd13b23b62aae1f97bb8f 100644 (file)
@@ -1,18 +1,24 @@
 import { Video, VideoChannelSummary, VideoConstant } from '../videos'
 
+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: {
-    channel: VideoChannelSummary
-    videos: Video[]
-  }[]
+  channels: ChannelOverview[]
 
-  categories: {
-    category: VideoConstant<number>
-    videos: Video[]
-  }[]
+  categories: CategoryOverview[]
 
-  tags: {
-    tag: string
-    videos: Video[]
-  }[]
+  tags: TagOverview[]
 }