Typing all the types

This commit is contained in:
2024-10-23 00:27:20 +02:00
parent edaf5f5c71
commit 46ad9813eb
15 changed files with 97 additions and 105 deletions

View File

@@ -1,6 +1,6 @@
import { render as renderMarkdown } from "@deno/gfm";
import { nip19 } from "@nostr/tools";
import { NEvent } from "../nostr.ts";
import { NostrEvent as NEvent } from "@nostrify/nostrify";
import config from "../config.ts";
export default class Article {
@@ -51,7 +51,7 @@ export default class Article {
identifier: this.identifier,
pubkey: this.event.pubkey,
kind: this.event.kind,
relays: [config.home_relay_url],
relays: [config.relay_urls[0]],
});
}
}

View File

@@ -1,5 +1,5 @@
import { nip19 } from "@nostr/tools";
import { NEvent } from "../nostr.ts";
import { nip19, NostrEvent as NEvent } from "@nostr/tools";
// import { NEvent } from "../nostr.ts";
export interface ProfileData {
name?: string;
@@ -12,8 +12,8 @@ export interface ProfileData {
}
export default class Profile {
event: NEvent;
private data: ProfileData;
event: NEvent;
username?: string;
constructor(event: NEvent, username?: string) {