12 lines
516 B
TypeScript
12 lines
516 B
TypeScript
|
import { ElectronProcess, ForgeConfig, ForgeHookFn, IForgePlugin, StartOptions } from '@electron-forge/shared-types';
|
||
|
export { StartOptions };
|
||
|
export default abstract class Plugin<C> implements IForgePlugin {
|
||
|
config: C;
|
||
|
abstract name: string;
|
||
|
__isElectronForgePlugin: true;
|
||
|
constructor(config: C);
|
||
|
init(_dir: string, _config: ForgeConfig): void;
|
||
|
getHook(_hookName: string): ForgeHookFn | null;
|
||
|
startLogic(_startOpts: StartOptions): Promise<ElectronProcess | string | string[] | false>;
|
||
|
}
|