Get type
type_getLook up a WebAssembly type or type form by name to retrieve its classification, sibling members, defining prose, formal references, and spec URL.
Instructions
Look up a WebAssembly type or type form by name: concrete value types (i32, i64, f32, f64, v128, funcref, externref, …) or type forms (functype, limits, memtype, tabletype, globaltype, reftype, valtype, rectype, heaptype, …). Returns its classification, sibling members for category types, defining clause prose, SpecTec formal-rule references, and the rendered spec URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Type or type-form name. Concrete value types: `i32`, `i64`, `f32`, `f64`, `v128`, `funcref`, `externref`, … Type forms: `functype`, `limits`, `memtype`, `tabletype`, `globaltype`, `reftype`, `valtype`, `rectype`, `heaptype`, … Case-insensitive, exact match. | |
| version | No | WebAssembly spec version to query. `latest` (default) is the current served version; `main` is the upstream working draft. | latest |