import { join } from "path"
import { format } from "url"

export const loadURL = (
  window: Electron.BrowserWindow,
  appPath: string,
  showStorybook = false,
): void => {
  if (showStorybook) {
    window.loadURL("http://localhost:6006")
  } else {
    window.loadURL(
      format({
        pathname: join(appPath, "out/index.html"),
        protocol: "file:",
        slashes: true,
      }),
    )
  }
}

import { join } from "path"
import { format } from "url"

export const loadURL = (
  window: Electron.BrowserWindow,
  appPath: string,
  showStorybook: boolean = false,
): void => {
  if (showStorybook) {
    window.loadURL("http://localhost:6006")
  } else {
    window.loadURL(
      format({
        pathname: join(appPath, "out/index.html"),
        protocol: "file:",
        slashes: true,
      }),
    )
  }
}

--- 
+++ 
@@ -4,7 +4,7 @@
 export const loadURL = (
   window: Electron.BrowserWindow,
   appPath: string,
-  showStorybook: boolean = false,
+  showStorybook = false,
 ): void => {
   if (showStorybook) {
     window.loadURL("http://localhost:6006")
Remove unneded boolean type annotation
