componentized/directory

componentized:config-empty

component

Exposes an empty wasi:config/store which returns neither errors, nor values.

Imports

This component imports nothing.

Exports

WIT

package root:component;

world root {
  export wasi:config/store@0.2.0-draft;
}
package wasi:config@0.2.0-draft {
  interface store {
    variant error {
      upstream(string),
      io(string),
    }

    get: func(key: string) -> result<option<string>, error>;

    get-all: func() -> result<list<tuple<string, string>>, error>;
  }
}