Files
cli/vendor/wit-component/tests/components/exports/component.wit.print

30 lines
432 B
Plaintext

package root:component;
world root {
export a: func();
export b: func(a: s8, b: s16, c: s32, d: s64) -> string;
export c: func() -> tuple<s8, s16, s32, s64>;
export bar: interface {
flags x {
a,
b,
c,
}
a: func(x: x);
}
export foo: interface {
variant x {
a,
b(string),
c(s64),
}
a: func();
b: func(x: string) -> x;
c: func(x: x) -> string;
}
}