aqua-playground/src/examples/import2Call.ts

22 lines
500 B
TypeScript
Raw Normal View History

import { registerOneMore } from '../compiled/examples/imports_exports/gen/OneMore';
import { barfoo, wrap } from '../compiled/examples/imports_exports/import2';
2021-08-31 12:51:07 +03:00
export async function import2Call() {
registerOneMore('hello', {
more_call: () => {
return {};
},
});
2021-08-31 12:51:07 +03:00
registerOneMore('ohmygod', {
more_call: () => {
return {};
},
});
2021-08-31 12:51:07 +03:00
let first = await wrap();
let second = await barfoo();
2021-08-31 12:51:07 +03:00
return { first, second };
2021-08-31 12:51:07 +03:00
}