- Imports:
- interface
wasi:example-api-package/example-dep-interface
- interface
wasi:example-package/example-interface
- interface
u32
## Import interface wasi:example-package/example-interface
Instructions for filling in this file:
-
Delete all these
//
comments, up to the first///
comment. -
Replace the remaining contents below with Wit code describing
interface
s and/orworld
s, using the same formatting style.
If you want to include examples of the API in use, these should be in the README.md at the root of the repository and linked to from this file.
Short interface description.
Explanation for developers using the interface API. It should include an
overview of the API as a whole as well as call out notable items in it,
for example example-api-type
and example-api-function
.
#### `record example-api-type`
Short type description
Explanation for developers using this type. It may be useful to give
some examples of places in the API where the type is used, such as in
the arguments and return type of example-api-function
.
Detailed specification
More rigorous specification details for implementers go here, if needed. The intention is to keep the developer-oriented docs focused on things that most developers will need to be aware of, while putting bulkier descriptions of precise behavior here.Short function description
Explanation for developers using the API. This should describe the
arguments which in this function are arg0
, arg1
, and arg2
, and the
return value.
Detailed specification
Similar to the details section above, this is meant for more rigorous specification details for implementors. This may explain what a compliant implementation MUST do, such as never returning an earlier result from a later call, for example.arg0
:example-api-type
arg1
:string
arg2
:example-dep-type
- result<
example-api-type
>