From cd62aabfecf6b8bc313f95abca26f45a765ce3d4 Mon Sep 17 00:00:00 2001 From: Akshay Kadam Date: Mon, 4 May 2020 20:14:33 +0530 Subject: [PATCH] Remove TS warning while scaffolding --- packages/template/typescript-webpack/tmpl/index.ts | 2 +- packages/template/typescript/tmpl/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/template/typescript-webpack/tmpl/index.ts b/packages/template/typescript-webpack/tmpl/index.ts index 9b38fc6892..8a1f036178 100644 --- a/packages/template/typescript-webpack/tmpl/index.ts +++ b/packages/template/typescript-webpack/tmpl/index.ts @@ -6,7 +6,7 @@ if (require('electron-squirrel-startup')) { // eslint-disable-line global-requir app.quit(); } -const createWindow = () => { +const createWindow = (): void => { // Create the browser window. const mainWindow = new BrowserWindow({ height: 600, diff --git a/packages/template/typescript/tmpl/index.ts b/packages/template/typescript/tmpl/index.ts index 359459fa0f..0de6b0fe91 100644 --- a/packages/template/typescript/tmpl/index.ts +++ b/packages/template/typescript/tmpl/index.ts @@ -6,7 +6,7 @@ if (require('electron-squirrel-startup')) { // eslint-disable-line global-requir app.quit(); } -const createWindow = () => { +const createWindow = (): void => { // Create the browser window. const mainWindow = new BrowserWindow({ height: 600,