Ende.WindowBindings

type alias · desktop apps only

type Ende.WindowBindings = Record<string, (this: BrowserWindow, ...args: any[]) => Promise<unknown>>

The default bindings type: any set of async handlers.

Handler parameters are any[] because the webview may call a binding with arbitrary arguments — nothing checks them at runtime. Supply an explicit type argument to BrowserWindow to have the arguments of BrowserWindow.bind handlers checked and inferred. Handler return values are checked either way.