Browse Source

Fix `NDKEvent` type imports

master
buttercat1791 9 months ago
parent
commit
9a6a494f17
  1. 3
      src/lib/components/CommentBox.svelte
  2. 3
      src/lib/components/publications/svelte_publication_tree.svelte.ts

3
src/lib/components/CommentBox.svelte

@ -2,12 +2,11 @@
import { Button, Textarea, Alert } from 'flowbite-svelte'; import { Button, Textarea, Alert } from 'flowbite-svelte';
import { parseBasicmarkup } from '$lib/utils/markup/basicMarkupParser'; import { parseBasicmarkup } from '$lib/utils/markup/basicMarkupParser';
import { nip19 } from 'nostr-tools'; import { nip19 } from 'nostr-tools';
import { getEventHash, signEvent, getUserMetadata, type NostrProfile } from '$lib/utils/nostrUtils'; import { getEventHash, signEvent, getUserMetadata, type NostrProfile, type NDKEvent } from '$lib/utils/nostrUtils';
import { standardRelays, fallbackRelays } from '$lib/consts'; import { standardRelays, fallbackRelays } from '$lib/consts';
import { userRelays } from '$lib/stores/relayStore'; import { userRelays } from '$lib/stores/relayStore';
import { get } from 'svelte/store'; import { get } from 'svelte/store';
import { goto } from '$app/navigation'; import { goto } from '$app/navigation';
import type { NDKEvent } from '$lib/utils/nostrUtils';
import { onMount } from 'svelte'; import { onMount } from 'svelte';
const props = $props<{ const props = $props<{

3
src/lib/components/publications/svelte_publication_tree.svelte.ts

@ -1,7 +1,6 @@
import { SvelteSet } from "svelte/reactivity"; import { SvelteSet } from "svelte/reactivity";
import { PublicationTree } from "../../data_structures/publication_tree.ts"; import { PublicationTree } from "../../data_structures/publication_tree.ts";
import { NDKEvent } from "../../utils/nostrUtils.ts"; import NDK, { NDKEvent } from "@nostr-dev-kit/ndk";
import NDK from "@nostr-dev-kit/ndk";
export class SveltePublicationTree { export class SveltePublicationTree {
resolvedAddresses: SvelteSet<string> = new SvelteSet(); resolvedAddresses: SvelteSet<string> = new SvelteSet();

Loading…
Cancel
Save