mirror of
https://github.com/thelounge/thelounge
synced 2024-11-21 19:43:07 +00:00
fix search event params
This commit is contained in:
parent
60486bf5e3
commit
a8e7022d04
1 changed files with 2 additions and 7 deletions
9
shared/types/socket-events.d.ts
vendored
9
shared/types/socket-events.d.ts
vendored
|
@ -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<SearchQuery>;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
|
|
Loading…
Reference in a new issue