PeerTube/server/typings/models/account/avatar.ts

13 lines
389 B
TypeScript
Raw Normal View History

2019-08-15 04:53:26 -05:00
import { AvatarModel } from '../../../models/avatar/avatar'
2019-08-20 12:05:31 -05:00
import { FunctionProperties } from '@server/typings/utils'
2019-08-15 04:53:26 -05:00
export type MAvatar = AvatarModel
2019-08-20 12:05:31 -05:00
// ############################################################################
// Format for API or AP object
2020-01-31 09:56:52 -06:00
export type MAvatarFormattable =
FunctionProperties<MAvatar> &
2019-08-20 12:05:31 -05:00
Pick<MAvatar, 'filename' | 'createdAt' | 'updatedAt'>