import { PickWith } from '@peertube/peertube-typescript-utils'
import { EventModel } from '../../../models/video/event.js'
import { MChannelId } from './video-channel.js'

type Use<K extends keyof EventModel, M> = PickWith<EventModel, K, M>

// ############################################################################

export type MEvent = Omit<EventModel, 'Channel'>

export type MEventFormattable = Use<'Channel', MChannelId>
