UNPKG

electron-chrome-web-store

Version:

Install and update Chrome extensions from the Chrome Web Store for Electron

19 lines (18 loc) 583 B
type ExtensionPathBaseInfo = { manifest: chrome.runtime.Manifest; path: string; }; type ExtensionPathInfo = ({ type: 'store'; id: string; } & ExtensionPathBaseInfo) | ({ type: 'unpacked'; } & ExtensionPathBaseInfo); /** * Load all extensions from the given directory. */ export declare function loadAllExtensions(session: Electron.Session, extensionsPath: string, options?: { allowUnpacked?: boolean; }): Promise<void>; export declare function findExtensionInstall(extensionId: string, extensionsPath: string): Promise<ExtensionPathInfo | null>; export {};