Notice all the typeof. In F#, this is converted to obj:
type [<AllowNullLiteral>] MainInterface =
inherit CommonInterface
abstract app: App with get, set
abstract autoUpdater: AutoUpdater with get, set
abstract BrowserView: obj with get, set
abstract BrowserWindow: obj with get, set
abstract ClientRequest: obj with get, set
abstract contentTracing: ContentTracing with get, set
abstract Cookies: obj with get, set
abstract Debugger: obj with get, set
abstract dialog: Dialog with get, set
abstract DownloadItem: obj with get, set
abstract globalShortcut: GlobalShortcut with get, set
abstract inAppPurchase: InAppPurchase with get, set
abstract IncomingMessage: obj with get, set
abstract ipcMain: IpcMain with get, set
abstract Menu: obj with get, set
abstract MenuItem: obj with get, set
abstract net: Net with get, set
abstract netLog: NetLog with get, set
abstract Notification: obj with get, set
abstract powerMonitor: PowerMonitor with get, set
abstract powerSaveBlocker: PowerSaveBlocker with get, set
abstract protocol: Protocol with get, set
abstract session: obj with get, set
abstract systemPreferences: SystemPreferences with get, set
abstract TouchBar: obj with get, set
abstract Tray: obj with get, set
abstract webContents: obj with get, set
abstract WebRequest: obj with get, set
What's up with all the typeof members in the TS definition? Do those make sense to include in the binding, and why are they obj in F#? Doesn't typeof in TS just return the string name of a type?
I'm working on bindings for Electron. A major high-level type is this (TS):
Notice all the
typeof
. In F#, this is converted toobj
:What's up with all the
typeof
members in the TS definition? Do those make sense to include in the binding, and why are theyobj
in F#? Doesn'ttypeof
in TS just return the string name of a type?