Skip to content

@pumpkin-plugins/static-hermes-runtime API / wit/model / parseWitToolsJson

Function: parseWitToolsJson() ​

parseWitToolsJson(source): WitToolsDocument

Defined in: wit/model.ts:152

Parse and validate JSON from the pinned wasm-tools WIT command.

Parameters ​

source ​

string

JSON output from wasm-tools component wit --json.

Returns ​

WitToolsDocument

The validated document with references between its tables checked.

Throws ​

If the JSON shape, a field value, or a table reference is invalid.

pumpkin-plugins documentation