Files
iptvnator/global.d.ts
4gray 1badb9a057 refactor(electron): share typed preload bridge contract (#1018)
* refactor(electron): share typed preload bridge contract

* refactor(electron): tighten bridge review fixes

* refactor(electron): tighten playlist bridge returns

* refactor(electron): use bridge epg progress type

* refactor(epg): alias progress bridge types
2026-06-01 09:52:22 +02:00

35 lines
828 B
TypeScript

import 'jest-extended';
import type {
ElectronBridgeApi,
ElectronBridgeDbOperationEvent,
ElectronDownloadItem,
} from './libs/shared/interfaces/src/lib/electron-api.interface';
declare module 'video.js' {
export interface VideoJsPlayer {
hlsQualitySelector(options?: Record<string, unknown>): void;
}
}
declare global {
type ElectronDbOperationEvent = ElectronBridgeDbOperationEvent;
interface Window {
__IPTVNATOR_CONFIG__?: {
BACKEND_URL?: string;
};
electron: ElectronBridgeApi;
process: NodeJS.Process;
require: NodeRequire;
}
/** Download item from the database */
type DownloadItem = ElectronDownloadItem;
}
// SystemJS module definition
declare const nodeModule: NodeModule;
interface NodeModule {
id: string;
}