From a8e7022d04fb4c5e434846bac82d0313b056326c Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Sun, 7 Apr 2024 12:53:03 +0200 Subject: [PATCH] fix search event params --- shared/types/socket-events.d.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/shared/types/socket-events.d.ts b/shared/types/socket-events.d.ts index 8f6fc3e6..c0f9858c 100644 --- a/shared/types/socket-events.d.ts +++ b/shared/types/socket-events.d.ts @@ -5,7 +5,7 @@ import {SharedMsg, ClientMessage, LinkPreview} from "./msg"; import {SharedUser} from "./user"; import {SharedChangelogData} from "./changelog"; import {SharedConfiguration, LockedSharedConfiguration} from "./config"; -import {SearchResponse} from "./storage"; +import {SearchResponse, SearchQuery} from "./storage"; type Session = { current: boolean; @@ -164,12 +164,7 @@ interface ClientToServerEvents { "history:clear": EventHandler<{target: number}>; - search: EventHandler<{ - networkUuid?: string; - channelName?: string; - searchTerm?: string; - offset: number; - }>; + search: EventHandler; } // eslint-disable-next-line @typescript-eslint/no-empty-interface