From b2015c8fe5b5b693457103be036799d311bf3ec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8D=C3=B1igo=20Ar=C3=A9jula=20A=C3=ADsa?= Date: Thu, 24 Nov 2022 21:33:50 +0100 Subject: [PATCH] Filter type with optional atributtes --- index.d.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/index.d.ts b/index.d.ts index 59b8971..ab8f861 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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;