# Can someone help me out within this please? # Error: but expected one of: proc newJsObject(): JsObject first type mismatch at position: 1 extra argument given expression: newJsObject([("width", 800), ("height", 700)]) # Code: var BrowserWindow {.importjs: "BrowserWindow", nodecl.}: JsObject type BrowserWindowType = distinct JsObject proc createBrowserWindow( options: JsObject, ): BrowserWindowType {.importjs: "new BrowserWindow(#)".} import nim_electron/[jsconsole, electronapp, browserwin] import asyncjs import jsffi proc isReady() = var windowOptions = newJsObject({ "width": 800, "height": 700 }) var win = createBrowserWindow(windowOptions) win.loadFile("index.html") echo "App is ready!" win.setBackgroundColor("green") proc runApp() {.async.} = app.on("ready"): proc() = isReady() discard runApp()