You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
m3u8-downloader-TypeScript/types/main.d.ts

32 lines
714 B
TypeScript

import { BrowserWindow } from "electron";
declare global {
namespace NodeJS {
interface Global {
__bin__: string;
}
}
}
declare var __bin__: string;
declare enum Windows {
MAIN_WINDOW = "MAIN_WINDOW",
BROWSER_WINDOW = "BROWSER_WINDOW",
}
declare interface IWindowManager {
create: (name: Windows) => Promise<BrowserWindow | null>;
get: (name: Windows) => BrowserWindow | null;
has: (name: Windows) => boolean;
deleteById: (id: number) => void;
}
declare interface IWindowListItem {
url: string;
options: () => Electron.BrowserWindowConstructorOptions;
callback: (window: BrowserWindow, windowManager: IWindowManager) => void;
}
export { IWindowManager, IWindowListItem };