]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/types/models/video/video-share.ts
Move typescript utils in its own directory
[github/Chocobozzz/PeerTube.git] / server / types / models / video / video-share.ts
CommitLineData
6b5f72be 1import { PickWith } from '@shared/typescript-utils'
7d9ba5c0
C
2import { VideoShareModel } from '../../../models/video/video-share'
3import { MActorDefault } from '../actor'
453e83ea
C
4import { MVideo } from './video'
5
0283eaac
C
6type Use<K extends keyof VideoShareModel, M> = PickWith<VideoShareModel, K, M>
7
8// ############################################################################
9
453e83ea
C
10export type MVideoShare = Omit<VideoShareModel, 'Actor' | 'Video'>
11
a1587156
C
12export type MVideoShareActor =
13 MVideoShare &
0283eaac 14 Use<'Actor', MActorDefault>
453e83ea 15
a1587156
C
16export type MVideoShareFull =
17 MVideoShare &
0283eaac
C
18 Use<'Actor', MActorDefault> &
19 Use<'Video', MVideo>