mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
Make Filter a generic type accepting Kind
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
import {Event} from './event'
|
import {Event, type Kind} from './event'
|
||||||
|
|
||||||
export type Filter = {
|
export type Filter<K extends number = Kind> = {
|
||||||
ids?: string[]
|
ids?: string[]
|
||||||
kinds?: number[]
|
kinds?: K[]
|
||||||
authors?: string[]
|
authors?: string[]
|
||||||
since?: number
|
since?: number
|
||||||
until?: number
|
until?: number
|
||||||
|
|||||||
Reference in New Issue
Block a user