1 import { ServerModel } from '../../../models/server/server'
2 import { PickWith } from '../../utils'
3 import { MAccountBlocklistId } from '../account'
5 type Use<K extends keyof ServerModel, M> = PickWith<ServerModel, K, M>
7 // ############################################################################
9 export type MServer = Omit<ServerModel, 'Actors' | 'BlockedByAccounts'>
11 // ############################################################################
13 export type MServerHost = Pick<MServer, 'host'>
15 export type MServerHostBlocks = MServerHost &
16 Use<'BlockedByAccounts', MAccountBlocklistId[]>