Skip to content

Commit ecdb212

Browse files
cleanup types more
1 parent 7814699 commit ecdb212

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/maker/dmg/src/Config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ export interface AdditionalDMGOptions {
3535
'code-sign'?: CodeSignOptions;
3636
}
3737

38-
export type MakerDMGConfig = Omit<ElectronInstallerDMGOptions, 'name' | 'appPath'> & { name?: string };
38+
export type MakerDMGConfig = Omit<ElectronInstallerDMGOptions, 'name' | 'appPath' | 'out'> & { name?: string };

packages/maker/dmg/src/MakerDMG.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import fs from 'fs-extra';
66

77
import { MakerDMGConfig } from './Config';
88

9+
import type { ElectronInstallerDMGOptions } from 'electron-installer-dmg';
10+
911
export default class MakerDMG extends MakerBase<MakerDMGConfig> {
1012
name = 'dmg';
1113

@@ -22,7 +24,7 @@ export default class MakerDMG extends MakerBase<MakerDMGConfig> {
2224
const forgeDefaultOutPath = path.resolve(makeDir, `${appName}-${packageJSON.version}-${targetArch}.dmg`);
2325

2426
await this.ensureFile(outPath);
25-
const dmgConfig = {
27+
const dmgConfig: ElectronInstallerDMGOptions = {
2628
overwrite: true,
2729
name: appName,
2830
...this.config,

0 commit comments

Comments
 (0)