Skip to content

Commit

Permalink
correct types
Browse files Browse the repository at this point in the history
  • Loading branch information
pablof7z committed Nov 13, 2024
1 parent 26e0d32 commit 28b5246
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ndk-svelte-components/src/lib/event/EventThread.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
import { NDKSubscriptionCacheUsage, type Hexpubkey, type NDKEvent, type NDKEventId } from "@nostr-dev-kit/ndk";
import type { Readable } from 'svelte/store';
import { fade } from 'svelte/transition';
import { SvelteComponent, onDestroy } from "svelte";
import { type ComponentType, onDestroy } from "svelte";
import EventCard from "./EventCard.svelte";
import ElementConnector from "./ElementConnector.svelte";
import type NDKSvelte from "@nostr-dev-kit/ndk-svelte";
type ExtraItem = {
component: typeof SvelteComponent;
component: ComponentType;
props: any;
}
type ExtraItemFetcher = (event: NDKEvent) => Readable<ExtraItem[]>;
Expand Down
5 changes: 2 additions & 3 deletions ndk-svelte-components/src/lib/event/content/Kind1.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
import NoteContentPerson from './NoteContentPerson.svelte';
import type NDK from '@nostr-dev-kit/ndk';
import EventCard from '../EventCard.svelte';
import { pluck, values, without } from 'ramda';
import type { ComponentType, SvelteComponent } from 'svelte';
import type { ComponentType } from 'svelte';
import type { UrlFactory } from '$lib';
// import NoteContentEntity from "./NoteContentEntity.svelte"
Expand All @@ -33,7 +32,7 @@
export let showEntire = false;
export let showMedia = true;
export let content = event.content;
export let mediaCollectionComponent: typeof SvelteComponent | undefined = undefined;
export let mediaCollectionComponent: ComponentType | undefined = undefined;
export let eventCardComponent: ComponentType = EventCard;
export let urlFactory: UrlFactory;
Expand Down

0 comments on commit 28b5246

Please # to comment.