Skip to content

Commit

Permalink
Update README.md (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleconroy authored Jan 31, 2024
1 parent 39d9f4f commit 89ac2c5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,13 @@ import { componentize } from '@bytecodealliance/componentize-js';
import { writeFile } from 'node:fs/promises';

const { component } = await componentize(`
export function fn () {}
export function hello (name) {
return \`Hello \${name}\`;
}
`, `
default world test {
export fn: func()
package local:hello;
world hello {
export hello: func(name: string) -> string;
}
`);

Expand Down

0 comments on commit 89ac2c5

Please sign in to comment.