Event, Filter: allow any kind number

Fixes https://github.com/nbd-wtf/nostr-tools/issues/275
This commit is contained in:
Alex Gleason
2023-08-12 17:11:42 -05:00
committed by fiatjaf_
parent e00362e7c9
commit df6f887d7e
2 changed files with 6 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
import {Event, type Kind} from './event.ts'
export type Filter<K extends number = Kind> = {
export type Filter<K extends number = number> = {
ids?: string[]
kinds?: K[]
authors?: string[]