Skip to content

Commit 27ee377

Browse files
committed
fix(generator): background typings incorrect
1 parent 495587d commit 27ee377

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generator/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +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(/let win\s*?$/m, 'let win: BrowserWindow')
47+
background = background.replace(/let win\s*?$/m, 'let win: BrowserWindow | null')
4848
fs.writeFileSync(api.resolve('./src/background.ts'), background)
4949
if (api.hasPlugin('router')) {
5050
console.log('\n')

0 commit comments

Comments
 (0)