feat: typescript part 1

Co-authored-by: Su-Yong <simssy2205@gmail.com>
This commit is contained in:
JellyBrick
2023-09-03 00:25:48 +09:00
parent 3e3fdb3c3f
commit 82bcadcd64
57 changed files with 3958 additions and 968 deletions

15
reset.d.ts vendored Normal file
View File

@ -0,0 +1,15 @@
import '@total-typescript/ts-reset';
import { YoutubePlayer } from './types/youtube-player';
declare global {
interface DocumentEventMap {
'apiLoaded': CustomEvent<YoutubePlayer>;
}
interface Window {
/**
* YouTube Music internal variable (Last interaction time)
*/
_lact: number;
}
}