QOL: Move source code under the src directory. (#1318)

This commit is contained in:
Angelos Bouklis
2023-10-15 15:52:48 +03:00
committed by GitHub
parent 30c8dcf730
commit 7625a3aa52
159 changed files with 102 additions and 71 deletions

34
src/reset.d.ts vendored Normal file
View 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;
}[];
}
}