feat: ServiceWorkerMain (#45341)

This commit is contained in:
Sam Maddock 2025-01-31 12:40:19 -05:00 committed by GitHub
parent 59e4794ff5
commit cc6164fe27
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 1265 additions and 50 deletions

View file

@ -66,6 +66,18 @@ declare namespace Electron {
}
}
interface ServiceWorkers {
_getWorkerFromVersionIDIfExists(versionId: number): Electron.ServiceWorkerMain | undefined;
_stopAllWorkers(): Promise<void>;
}
interface ServiceWorkerMain {
_startExternalRequest(hasTimeout: boolean): { id: string, ok: boolean };
_finishExternalRequest(uuid: string): void;
_countExternalRequests(): number;
}
interface TouchBar {
_removeFromWindow: (win: BaseWindow) => void;
}