mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-13 04:26:16 -08:00
13 lines
414 B
TypeScript
13 lines
414 B
TypeScript
export abstract class DataService {
|
|
get isElectron(): boolean {
|
|
return !!(window && window.process && (window.process as any).type);
|
|
}
|
|
abstract getAppVersion(): string;
|
|
abstract sendIpcEvent(type: string, payload?: unknown): void;
|
|
abstract removeAllListeners(type: string): void;
|
|
abstract listenOn(
|
|
command: string,
|
|
callback: (...args: any[]) => void
|
|
): void;
|
|
}
|