mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 09:01:03 -08:00
* 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
35 lines
828 B
TypeScript
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;
|
|
}
|