mirror of
https://github.com/thelounge/thelounge
synced 2025-02-16 13:18:24 +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 {SharedUser} from "./user";
|
||||||
import {SharedChangelogData} from "./changelog";
|
import {SharedChangelogData} from "./changelog";
|
||||||
import {SharedConfiguration, LockedSharedConfiguration} from "./config";
|
import {SharedConfiguration, LockedSharedConfiguration} from "./config";
|
||||||
import {SearchResponse} from "./storage";
|
import {SearchResponse, SearchQuery} from "./storage";
|
||||||
|
|
||||||
type Session = {
|
type Session = {
|
||||||
current: boolean;
|
current: boolean;
|
||||||
|
@ -164,12 +164,7 @@ interface ClientToServerEvents {
|
||||||
|
|
||||||
"history:clear": EventHandler<{target: number}>;
|
"history:clear": EventHandler<{target: number}>;
|
||||||
|
|
||||||
search: EventHandler<{
|
search: EventHandler<SearchQuery>;
|
||||||
networkUuid?: string;
|
|
||||||
channelName?: string;
|
|
||||||
searchTerm?: string;
|
|
||||||
offset: number;
|
|
||||||
}>;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||||
|
|
Loading…
Add table
Reference in a new issue