Skip to content

Commit 850346a

Browse files
committed
fix(generator): background.js typings incorrect
1 parent fb25160 commit 850346a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

generator/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ module.exports = (api, options = {}) => {
4444
/process\.env\.WEBPACK_DEV_SERVER_URL\s*?\)$/m,
4545
'process.env.WEBPACK_DEV_SERVER_URL as string)'
4646
)
47-
background = background.replace(
48-
/let win\s*?$/m,
49-
'let win: any'
50-
)
47+
background = background.replace(/let win\s*?$/m, 'let win: BrowserWindow')
5148
fs.writeFileSync(api.resolve('./src/background.ts'), background)
5249
if (api.hasPlugin('router')) {
5350
console.log('\n')

0 commit comments

Comments
 (0)