mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
35 lines
716 B
TypeScript
35 lines
716 B
TypeScript
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;
|
|
}[];
|
|
}
|
|
}
|