Skip to content

Commit 4202d6a

Browse files
fix: export the WebviewTag type (#223)
1 parent 6d3db61 commit 4202d6a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/primary-interfaces.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ export const generatePrimaryInterfaces = (
7575
);
7676
}
7777
}
78+
if (module.type === 'Element') {
79+
newTypeAliases.push(
80+
`type ${_.upperFirst(module.name)} = Electron.${_.upperFirst(module.name)};`,
81+
);
82+
}
7883
constDeclarations.push(...newConstDeclarations);
7984
if (module.process.main && module.process.renderer) {
8085
TargetNamespace = CommonNamespace;

0 commit comments

Comments
 (0)