1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package quickjs:example2; interface exp1 { hello: func(name: string) -> string; get-const: func() -> u64; } interface exp2 { async-hello: func(name: string) -> string; } world example2 { export exp1; export exp2; export version: func() -> string; }