Update type definitions

This commit is contained in:
syuilo
2021-06-25 00:00:17 +09:00
parent 2a84e5034e
commit 17c9f6eace
2 changed files with 95 additions and 30 deletions

View File

@@ -95,6 +95,13 @@ export type Note = {
}[];
};
export type NoteReaction = {
id: ID;
createdAt: DateString;
user: UserLite;
type: string;
};
export type Notification = {
id: ID;
createdAt: DateString;
@@ -338,6 +345,13 @@ export type FollowingFollowerPopulated = Following & {
follower: UserDetailed;
};
export type Blocking = {
id: ID;
createdAt: DateString;
blockeeId: User['id'];
blockee: UserDetailed;
};
export type Instance = {
id: ID;
caughtAt: DateString;
@@ -367,5 +381,13 @@ export type Instance = {
infoUpdatedAt: DateString | null;
};
export type Signin = {
id: ID;
createdAt: DateString;
ip: string;
headers: Record<string, any>;
success: boolean;
};
export type UserSorting = '+follower' | '-follower' | '+createdAt' | '-createdAt' | '+updatedAt' | '-updatedAt';
export type OriginType = 'combined' | 'local' | 'remote';