1 2 3 4 5 6 7 8 9 10 11 12
package pack:name; // See https://github.com/WebAssembly/component-model/blob/main/design/mvp/WIT.md for more details about the WIT syntax interface api { add: func(value: u64); get: func() -> u64; } world component-name { export api; }