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

13 lines
386 B
TypeScript
Raw Normal View History

2019-08-15 11:53:26 +02:00
import { AvatarModel } from '../../../models/avatar/avatar'
2020-06-23 14:10:17 +02:00
import { FunctionProperties } from '@shared/core-utils'
2019-08-15 11:53:26 +02:00
export type MAvatar = AvatarModel
2019-08-20 19:05:31 +02:00
// ############################################################################
// Format for API or AP object
2020-01-31 16:56:52 +01:00
export type MAvatarFormattable =
FunctionProperties<MAvatar> &
2019-08-20 19:05:31 +02:00
Pick<MAvatar, 'filename' | 'createdAt' | 'updatedAt'>