mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
fix: typed networkManager.fetch
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user