]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/typings/models/account/avatar.ts
Type toFormattedJSON
[github/Chocobozzz/PeerTube.git] / server / typings / models / account / avatar.ts
index 257c48bfc68f7020155b7a21f0579501fc47b054..8af6cc787768b170d1dfa047c4ceaa7fdb3b2cff 100644 (file)
@@ -1,3 +1,11 @@
 import { AvatarModel } from '../../../models/avatar/avatar'
+import { FunctionProperties } from '@server/typings/utils'
 
 export type MAvatar = AvatarModel
+
+// ############################################################################
+
+// Format for API or AP object
+
+export type MAvatarFormattable = FunctionProperties<MAvatar> &
+  Pick<MAvatar, 'filename' | 'createdAt' | 'updatedAt'>