aqua-playground/src/examples/import2Call.ts

22 lines
500 B
TypeScript

import { registerOneMore } from '../compiled/examples/imports_exports/gen/OneMore';
import { barfoo, wrap } from '../compiled/examples/imports_exports/import2';
export async function import2Call() {
registerOneMore('hello', {
more_call: () => {
return {};
},
});
registerOneMore('ohmygod', {
more_call: () => {
return {};
},
});
let first = await wrap();
let second = await barfoo();
return { first, second };
}