mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-12 12:06:16 -08:00
26 lines
647 B
TypeScript
26 lines
647 B
TypeScript
import { Params } from '@angular/router';
|
|
|
|
export abstract class DataService {
|
|
get isElectron(): boolean {
|
|
return !!(
|
|
window &&
|
|
window['process'] &&
|
|
(window['process'] as any).type
|
|
);
|
|
}
|
|
get remote() {
|
|
return null;
|
|
}
|
|
get ipcRenderer() {
|
|
return null;
|
|
}
|
|
abstract getAppVersion(): string;
|
|
abstract sendIpcEvent(type: string, payload?: unknown): any;
|
|
abstract removeAllListeners(type: string): void;
|
|
abstract listenOn(
|
|
command: string,
|
|
callback: (...args: any[]) => void
|
|
): void;
|
|
abstract getAppEnvironment(): string;
|
|
}
|