mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
29 lines
812 B
TypeScript
29 lines
812 B
TypeScript
import type {Server} from './rpc';
|
|
|
|
declare global {
|
|
namespace Electron {
|
|
interface App {
|
|
config: typeof import('./config');
|
|
plugins: typeof import('./plugins');
|
|
getWindows: () => Set<BrowserWindow>;
|
|
getLastFocusedWindow: () => BrowserWindow | null;
|
|
windowCallback?: (win: BrowserWindow) => void;
|
|
createWindow: (
|
|
fn?: (win: BrowserWindow) => void,
|
|
options?: {size?: [number, number]; position?: [number, number]},
|
|
profileName?: string
|
|
) => BrowserWindow;
|
|
setVersion: (version: string) => void;
|
|
}
|
|
|
|
// type Server = import('./rpc').Server;
|
|
interface BrowserWindow {
|
|
uid: string;
|
|
sessions: Map<any, any>;
|
|
focusTime: number;
|
|
clean: () => void;
|
|
rpc: Server;
|
|
profileName: string;
|
|
}
|
|
}
|
|
}
|