import { PickWith } from '../../utils'
import { MAccountBlocklistId } from '../account'
+type Use<K extends keyof ServerModel, M> = PickWith<ServerModel, K, M>
+
+// ############################################################################
+
export type MServer = Omit<ServerModel, 'Actors' | 'BlockedByAccounts'>
+// ############################################################################
+
export type MServerHost = Pick<MServer, 'host'>
export type MServerHostBlocks = MServerHost &
- PickWith<ServerModel, 'BlockedByAccounts', MAccountBlocklistId[]>
+ Use<'BlockedByAccounts', MAccountBlocklistId[]>