wip: refactor

This commit is contained in:
Ren Amamiya
2023-08-17 15:11:40 +07:00
parent ab61bfb2cd
commit 414dd50a5c
33 changed files with 958 additions and 648 deletions

12
src/utils/types.d.ts vendored
View File

@@ -8,8 +8,15 @@ export interface RichContent {
links: string[];
}
export interface LumeEvent extends NDKEvent {
richContent: RichContent;
export interface DBEvent {
id: string;
account_id: number;
event: string | NDKEvent;
author: string;
root_id: string;
reply_id: string;
created_at: number;
richContent?: RichContent;
}
export interface Account extends NDKUserProfile {
@@ -20,6 +27,7 @@ export interface Account extends NDKUserProfile {
network: null | string[];
is_active: number;
privkey?: string; // deprecated
last_login_at: number;
}
export interface Profile extends NDKUserProfile {