Typing all the types
This commit is contained in:
@@ -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]],
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user