if you try to follow the example with the current version that is available, the asc will give you an error ERROR TS6054: File '~lib/as-wasi.ts' not found.
the error can be fixed by changing the import { Console, FileSystem, Descriptor } from "as-wasi" to import { Console, FileSystem, Descriptor } from "as-wasi/assembly";
if you try to follow the example with the current version that is available, the asc will give you an error ERROR TS6054: File '~lib/as-wasi.ts' not found.
the error can be fixed by changing the import { Console, FileSystem, Descriptor } from "as-wasi" to import { Console, FileSystem, Descriptor } from "as-wasi/assembly";