Types shared by the interfaces in this package.
Types
record malformedsince 0.0.0-dev
A malformed input.
name:option<string>Calls accepting multiple inputs name the one that is malformed.
message:stringWhy the input is invalid.
variant error-codesince 0.0.0-dev
An error from a call.
malformed:malformedA value cannot be parsed to its expected type.
not-component:option<string>A wasm that must be a component is not, e.g. a core module. Calls accepting multiple wasms name the one that is not a component.
not-found:option<string>The item does not exist, optionally naming it, e.g. a path, URL, reference or package.
other:option<string>Any other error, with an optional message.
type wasmsince 0.0.0-dev
The bytes of a WebAssembly binary, a component unless stated otherwise.
list<u8>
WIT
/// Types shared by the interfaces in this package.
@since(version = 0.0.0-dev)
interface types {
/// A `malformed` input.
@since(version = 0.0.0-dev)
record malformed {
/// Calls accepting multiple inputs name the one that is malformed.
name: option<string>,
/// Why the input is invalid.
message: string,
}
/// An error from a call.
@since(version = 0.0.0-dev)
variant error-code {
/// A value cannot be parsed to its expected type.
malformed(malformed),
/// A wasm that must be a component is not, e.g. a core module. Calls accepting multiple
/// wasms name the one that is not a component.
not-component(option<string>),
/// The item does not exist, optionally naming it, e.g. a path, URL, reference or package.
not-found(option<string>),
/// Any other error, with an optional message.
other(option<string>),
}
/// The bytes of a WebAssembly binary, a component unless stated otherwise.
@since(version = 0.0.0-dev)
type wasm = list<u8>;
}