mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
Filter type with optional atributtes
This commit is contained in:
committed by
fiatjaf
parent
c5d2e3b037
commit
b2015c8fe5
14
index.d.ts
vendored
14
index.d.ts
vendored
@@ -32,13 +32,13 @@ declare function signEvent(event: Event, key: PrivKey): Promise<[Uint8Array, num
|
||||
|
||||
// filter.js
|
||||
declare type Filter = {
|
||||
ids: string[],
|
||||
kinds: EventKind[],
|
||||
authors: string[],
|
||||
since: number,
|
||||
until: number,
|
||||
"#e": string[],
|
||||
"#p": string[],
|
||||
ids?: string[],
|
||||
kinds?: EventKind[],
|
||||
authors?: string[],
|
||||
since?: number,
|
||||
until?: number,
|
||||
"#e"?: string[],
|
||||
"#p"?: string[],
|
||||
};
|
||||
|
||||
declare function matchFilter(filter: Filter, event: Event): boolean;
|
||||
|
||||
Reference in New Issue
Block a user