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.
28 lines
669 B
TypeScript
28 lines
669 B
TypeScript
import { BrowserWindow } from "electron";
|
|
import { Windows } from "main/window/variables";
|
|
|
|
declare global {
|
|
namespace NodeJS {
|
|
interface Global {
|
|
__bin__: string;
|
|
}
|
|
}
|
|
}
|
|
|
|
declare let __bin__: string;
|
|
|
|
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 };
|