mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 20:52:06 +00:00
feat: migration to TypeScript part 2
Co-authored-by: Su-Yong <simssy2205@gmail.com>
This commit is contained in:
19
reset.d.ts
vendored
19
reset.d.ts
vendored
@ -2,8 +2,14 @@ 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 {
|
||||
@ -11,5 +17,18 @@ declare global {
|
||||
* 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