fix: replace any types with proper NostrEvent types in relayListService

- Import NostrEvent type from nostr-tools
- Replace any[] with NostrEvent[] for events array
- Replace Map<string, any> with Map<string, NostrEvent> for eventsMap
- Resolves ESLint warnings about explicit any usage
This commit is contained in:
Gigi
2025-10-20 20:13:05 +02:00
parent ebe8ecf63b
commit 31afe3792e

View File

@@ -1,4 +1,5 @@
import { RelayPool } from 'applesauce-relay'
import { NostrEvent } from 'nostr-tools'
import { queryEvents } from './dataFetch'
export interface UserRelayInfo {
@@ -24,8 +25,8 @@ export async function loadUserRelayList(
const startTime = Date.now()
// Try querying with streaming callback for faster results
const events: any[] = []
const eventsMap = new Map<string, any>()
const events: NostrEvent[] = []
const eventsMap = new Map<string, NostrEvent>()
const result = await queryEvents(relayPool, {
kinds: [10002],