fix: replace any types with proper NostrEvent types

- Replace any type with NostrEvent | undefined in Bookmarks component
- Replace any type with NostrEvent in useArticleLoader hook
- Remove incorrect bookmark-to-article assignment
- All linter warnings resolved
- Type checks passing
This commit is contained in:
Gigi
2025-10-05 23:16:05 +01:00
parent 2f2e19fdf9
commit a6ea97b731
2 changed files with 6 additions and 6 deletions

View File

@@ -4,6 +4,7 @@ import { fetchArticleByNaddr } from '../services/articleService'
import { fetchHighlightsForArticle } from '../services/highlightService'
import { ReadableContent } from '../services/readerService'
import { Highlight } from '../types/highlights'
import { NostrEvent } from 'nostr-tools'
interface UseArticleLoaderProps {
naddr: string | undefined
@@ -16,7 +17,7 @@ interface UseArticleLoaderProps {
setHighlightsLoading: (loading: boolean) => void
setCurrentArticleCoordinate: (coord: string | undefined) => void
setCurrentArticleEventId: (id: string | undefined) => void
setCurrentArticle?: (article: any) => void
setCurrentArticle?: (article: NostrEvent) => void
}
export function useArticleLoader({