Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @electron-forge/shared-types

Index

Type aliases

ElectronProcess: ChildProcess & { restarted: boolean }
ForgeArch: ArchOption
ForgeConfig: Partial<Omit<ResolvedForgeConfig, "pluginInterface">>
ForgeHookFn<Hook>: Hook extends keyof ForgeSimpleHookSignatures ? ForgeSimpleHookFn<Hook> : Hook extends keyof ForgeMutatingHookSignatures ? ForgeMutatingHookFn<Hook> : never

Type parameters

ForgeHookMap: { [ S in ForgeHookName]?: ForgeHookFn<S> }
ForgeListrTask<T>: TaskWrapper<T, ListrDefaultRenderer>

Type parameters

  • T

ForgeListrTaskDefinition: ListrTask<never>
ForgeListrTaskFn<Ctx>: ListrTask<Ctx, ListrDefaultRenderer>["task"]

Type parameters

  • Ctx = any

ForgeMultiHookMap: { [ S in ForgeHookName]?: ForgeHookFn<S> | ForgeHookFn<S>[] }
ForgeMutatingHookFn<Hook>: (forgeConfig: ResolvedForgeConfig, ...args: ForgeMutatingHookSignatures[Hook]) => Promise<ForgeMutatingHookSignatures[Hook][0] | undefined>

Type parameters

Type declaration

ForgePackagerOptions: Omit<Options, "dir" | "arch" | "platform" | "out" | "electronVersion">
ForgePlatform: TargetPlatform
ForgeRebuildOptions: Omit<RebuildOptions, "buildPath" | "electronVersion" | "arch">
ForgeSimpleHookFn<Hook>: (forgeConfig: ResolvedForgeConfig, ...args: ForgeSimpleHookSignatures[Hook]) => Promise<void>

Type parameters

Type declaration

InnerStartResult: ElectronProcess | string | string[] | false
PackagePerson: undefined | string | { email?: string; name: string; url?: string }
StartResult: InnerStartResult | { result: InnerStartResult; tasks: ForgeListrTaskDefinition[] }