fix: use networkManager.fetch instead of fetch

This commit is contained in:
JellyBrick
2024-12-27 01:05:55 +09:00
parent 22fdfe3342
commit 80471b0ca4
6 changed files with 40 additions and 26 deletions

View File

@ -2,7 +2,7 @@ import type { YoutubePlayer } from '@/types/youtube-player';
import type { GetState, QueueItem } from '@/types/datahost-get-state';
type StoreState = GetState;
type Store = {
export type Store = {
dispatch: (obj: { type: string; payload?: unknown }) => void;
getState: () => StoreState;

View File

@ -0,0 +1,3 @@
export interface SearchBoxElement extends HTMLElement {
getSearchboxStats(): unknown;
}

View File

@ -0,0 +1,6 @@
export interface YouTubeMusicAppElement extends HTMLElement {
navigate(page: string): void;
networkManager: {
fetch: (url: string, data: unknown) => Promise<unknown>;
};
}