Types
use type wasm
from componentized:component/types@0.1.0
The bytes of a WebAssembly binary, a component unless stated otherwise.
list<u8>
use variant error-code
from componentized:component/types@0.1.0
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.
Functions
create: func(
values: list<tuple<string, string>>,
) -> result<wasm, error-code>since 0.3.0
Create a component implementing wasi:config/store with the provided values.
WIT
@since(version = 0.3.0)
interface factory {
use componentized:component/types@0.1.0.{wasm, error-code};
/// Create a component implementing `wasi:config/store` with the provided values.
@since(version = 0.3.0)
create: func(values: list<tuple<string, string>>) -> result<wasm, error-code>;
}