Update type definition

This commit is contained in:
syuilo
2021-06-21 17:56:11 +09:00
parent f894d978df
commit 64cf49c378
2 changed files with 22 additions and 7 deletions

View File

@@ -321,5 +321,20 @@ export type Channel = {
// TODO
};
export type Following = {
id: ID;
createdAt: DateString;
followerId: User['id'];
followeeId: User['id'];
};
export type FollowingFolloweePopulated = Following & {
followee: UserDetailed;
};
export type FollowingFollowerPopulated = Following & {
follower: UserDetailed;
};
export type UserSorting = '+follower' | '-follower' | '+createdAt' | '-createdAt' | '+updatedAt' | '-updatedAt';
export type OriginType = 'combined' | 'local' | 'remote';