var
BrowserWindow {.importjs: "BrowserWindow", nodecl.}: JsObject
type BrowserWindowType* = distinct JsObject
proc createBrowserWindow*(width, height: int): BrowserWindowType {.importjs: "new BrowserWindow({width: #, height: #})".}
There’s another param named “preferences” and in this case its an object
Preferences: {param1: “hi”}
How do i achieve and use this?
Goal:
createBrowserWindow(800, 600, {“hi”})