replace void.cat with nostr.build

This commit is contained in:
Ren Amamiya
2023-09-05 12:46:00 +07:00
parent 4019623d99
commit 2389ad5fdc
8 changed files with 120 additions and 44 deletions

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

@@ -1,4 +1,5 @@
import { NDKEvent, NDKUserProfile } from '@nostr-dev-kit/ndk';
import { Response } from '@tauri-apps/api/http';
export interface RichContent {
parsed: string;
@@ -88,3 +89,23 @@ export interface Opengraph {
export interface NDKEventWithReplies extends NDKEvent {
replies: Array<NDKEvent>;
}
export interface NostrBuildResponse extends Response {
ok: boolean;
data: {
message: string;
status: string;
data: Array<{
blurhash: string;
dimensions: {
width: number;
height: number;
};
mime: string;
name: string;
sha256: string;
size: number;
url: string;
}>;
};
}