Skip to content

Commit dbb5f22

Browse files
fix: export type for instance values as well
1 parent 82ddba9 commit dbb5f22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/master-interfaces.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ export const generateMasterInterfaces = (
6565
newConstDeclarations.push(
6666
`const ${classify(module.name)}: typeof ${_.upperFirst(module.name)};`,
6767
);
68-
newTypeAliases.push(
69-
`type ${_.upperFirst(module.name)} = Electron.${_.upperFirst(module.name)};`,
70-
);
7168
} else {
7269
newConstDeclarations.push(
7370
`const ${classify(module.name)}: ${_.upperFirst(module.name)};`,
7471
);
7572
}
73+
newTypeAliases.push(
74+
`type ${_.upperFirst(module.name)} = Electron.${_.upperFirst(module.name)};`,
75+
);
7676
}
7777
}
7878
constDeclarations.push(...newConstDeclarations);

0 commit comments

Comments
 (0)