mirror of
https://github.com/encounter/jco.git
synced 2026-03-30 11:18:26 -07:00
79f7995b6d
* chore(examples): add examples This commit adds examples to the jco, some of which are/will be referenced from the component-model book (https://component-model.bytecodealliance.org/). Signed-off-by: Victor Adossi <vadossi@cosmonic.com> * fix(examples): nodejs script target command chaining Co-authored-by: Guy Bedford <guybedford@gmail.com> * refactor(examples): inline reverseAndUppercase() in component Signed-off-by: Victor Adossi <vadossi@cosmonic.com> * refactor(examples): inline reverseString() in example Signed-off-by: Victor Adossi <vadossi@cosmonic.com> --------- Signed-off-by: Victor Adossi <vadossi@cosmonic.com> Co-authored-by: Guy Bedford <guybedford@gmail.com>
11 lines
173 B
Plaintext
11 lines
173 B
Plaintext
package example:string-reverse@0.1.0;
|
|
|
|
@since(version = 0.1.0)
|
|
interface reverse {
|
|
reverse-string: func(s: string) -> string;
|
|
}
|
|
|
|
world component {
|
|
export reverse;
|
|
}
|