mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
fix: use networkManager.fetch instead of fetch
This commit is contained in:
@ -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;
|
||||
|
||||
3
src/types/search-box-element.ts
Normal file
3
src/types/search-box-element.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export interface SearchBoxElement extends HTMLElement {
|
||||
getSearchboxStats(): unknown;
|
||||
}
|
||||
6
src/types/youtube-music-app-element.ts
Normal file
6
src/types/youtube-music-app-element.ts
Normal file
@ -0,0 +1,6 @@
|
||||
export interface YouTubeMusicAppElement extends HTMLElement {
|
||||
navigate(page: string): void;
|
||||
networkManager: {
|
||||
fetch: (url: string, data: unknown) => Promise<unknown>;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user