Skip to content

Interface: NativeBridge ​

Defined in: packages/vellora/src/types.ts:160

The swappable native render boundary. The real @vellora/native implements this exact type, so the mock is a drop-in: async, finalized HTML + resolved options in, complete PDF bytes out.

Out-of-subset input is signaled by a rejection carrying the structured located diagnostic { feature, line, col, hint } (see UnsupportedDiagnostic), which the orchestration maps to a VelloraUnsupportedError.

Methods ​

render() ​

render(html, options): Promise<Uint8Array<ArrayBufferLike>>

Defined in: packages/vellora/src/types.ts:161

Parameters ​

html ​

string

options ​

BridgeRenderOptions

Returns ​

Promise<Uint8Array<ArrayBufferLike>>