refactor: use specta for commands (#192)

* feat: add tauri-specta

* refactor: system library

* chore: format
This commit is contained in:
雨宮蓮
2024-05-25 15:21:40 +07:00
committed by GitHub
parent 7449000f5f
commit bba324ea53
92 changed files with 2164 additions and 2071 deletions

View File

@@ -26,7 +26,7 @@ export enum Kind {
// #TODO: Add all nostr kinds
}
export interface Event {
export interface NostrEvent {
id: string;
pubkey: string;
created_at: number;
@@ -34,11 +34,10 @@ export interface Event {
tags: string[][];
content: string;
sig: string;
relay?: string;
}
export interface EventWithReplies extends Event {
replies: Array<Event>;
export interface EventWithReplies extends NostrEvent {
replies: Array<NostrEvent>;
}
export interface Metadata {