simpkey/src/models/Note.ts

28 lines
658 B
TypeScript
Raw Permalink Normal View History

2020-07-23 18:14:28 +02:00
import { User } from './User';
export type NoteVisibility = 'public' | 'home' | 'followers' | 'specified';
export interface Note {
createdAt: string;
cw: string | null;
// emojis: Emoji[];
fileIds: string[];
// files: DriveFile[];
id: string;
reactions: Record<string, number>;
renoteCount: 0;
renoteId: string | null;
renote?: Note;
repliesCount: 0;
replyId: string | null;
reply?: Note;
text: string | null;
2020-07-23 19:44:58 +02:00
myReaction?: string;
2020-07-23 18:14:28 +02:00
uri: string | null;
url: string | null;
user: User,
userId: string;
visibility: NoteVisibility;
localOnly: boolean;
viaMobile: boolean;
}