mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 19:31:46 +00:00
QOL: Move source code under the src directory. (#1318)
This commit is contained in:
34
src/reset.d.ts
vendored
Normal file
34
src/reset.d.ts
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
import '@total-typescript/ts-reset';
|
||||
import { YoutubePlayer } from './types/youtube-player';
|
||||
|
||||
declare global {
|
||||
interface Compressor {
|
||||
audioSource: MediaElementAudioSourceNode;
|
||||
audioContext: AudioContext;
|
||||
}
|
||||
|
||||
interface DocumentEventMap {
|
||||
'apiLoaded': CustomEvent<YoutubePlayer>;
|
||||
'audioCanPlay': CustomEvent<Compressor>;
|
||||
}
|
||||
|
||||
interface Window {
|
||||
/**
|
||||
* YouTube Music internal variable (Last interaction time)
|
||||
*/
|
||||
_lact: number;
|
||||
navigation: Navigation;
|
||||
}
|
||||
}
|
||||
|
||||
// import { Howl as _Howl } from 'howler';
|
||||
declare module 'howler' {
|
||||
interface Howl {
|
||||
_sounds: {
|
||||
_paused: boolean;
|
||||
_ended: boolean;
|
||||
_id: string;
|
||||
_node: HTMLMediaElement;
|
||||
}[];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user