PeerTube/server/typings/models/account/account-blocklist.ts

12 lines
523 B
TypeScript
Raw Normal View History

2019-08-15 09:53:26 +00:00
import { AccountBlocklistModel } from '../../../models/account/account-blocklist'
import { PickWith } from '../../utils'
import { MAccountDefault } from './account'
export type MAccountBlocklist = Omit<AccountBlocklistModel, 'ByAccount' | 'BlockedAccount'>
export type MAccountBlocklistId = Pick<AccountBlocklistModel, 'id'>
export type MAccountBlocklistAccounts = MAccountBlocklist &
PickWith<AccountBlocklistModel, 'ByAccount', MAccountDefault> &
PickWith<AccountBlocklistModel, 'BlockedAccount', MAccountDefault>