InvokeResult

Result envelope.

Result envelope. Deno desktop delivers a thrown handler error as { name, message, stack } (dropping our code), so handlers never throw across the binding — they return this instead and @wvb/bridge unwraps it (mirrors @wvb/electron's preload).

View source ↗

Type

type InvokeResult = { ok: true; value: unknown } | { error: BridgeErrorData; ok: false };

On this page