fix: typed networkManager.fetch

This commit is contained in:
JellyBrick
2025-08-02 16:49:15 +09:00
parent 5e4a1253d4
commit 62b40d4df5
4 changed files with 25 additions and 6 deletions

View File

@ -286,7 +286,15 @@ async function onApiLoaded() {
if (!app || !searchBox) return;
const result = await app.networkManager.fetch('/search', {
const result = await app.networkManager.fetch<
unknown,
{
query: string;
params?: string;
continuation?: string;
suggestStats?: unknown;
}
>('/search', {
query,
params,
continuation,