Skip to content

Commit a3a0ea0

Browse files
committed
fix: ensure Electron.Utility property exists
Added in electron#246, the Utility namespace currently has no concrete values in it on electron/electron@main. This change ensures Electron.Utility is available as a property even when the namespace has no values.
1 parent 4b67b76 commit a3a0ea0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/primary-interfaces.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ export const generatePrimaryInterfaces = (
106106
}
107107
});
108108

109+
constDeclarations.push('const Utility: {};');
110+
109111
for (const interfaceKey of interfaceKeys) {
110112
const alias = ` type ${interfaceKey} = Electron.${interfaceKey}`;
111113
CommonNamespace.push(alias);

0 commit comments

Comments
 (0)