mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 03:11:46 +00:00
feat: enable context-isolation (#1361)
This commit is contained in:
8
src/reset.d.ts
vendored
8
src/reset.d.ts
vendored
@ -1,4 +1,9 @@
|
||||
import '@total-typescript/ts-reset';
|
||||
|
||||
import { ipcRenderer as electronIpcRenderer } from 'electron';
|
||||
import is from 'electron-is';
|
||||
|
||||
import config from './config';
|
||||
import { YoutubePlayer } from './types/youtube-player';
|
||||
|
||||
declare global {
|
||||
@ -13,6 +18,9 @@ declare global {
|
||||
}
|
||||
|
||||
interface Window {
|
||||
ipcRenderer: typeof electronIpcRenderer;
|
||||
mainConfig: typeof config;
|
||||
electronIs: typeof is;
|
||||
/**
|
||||
* YouTube Music internal variable (Last interaction time)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user