2021-09-08 13:00:24 +03:00
|
|
|
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
|
|
|
|
2021-09-08 13:00:24 +03:00
|
|
|
export async function import2Call() {
|
|
|
|
registerOneMore('hello', {
|
|
|
|
more_call: () => {
|
|
|
|
return {};
|
|
|
|
},
|
|
|
|
});
|
2021-08-31 12:51:07 +03:00
|
|
|
|
2021-09-08 13:00:24 +03:00
|
|
|
registerOneMore('ohmygod', {
|
|
|
|
more_call: () => {
|
|
|
|
return {};
|
|
|
|
},
|
|
|
|
});
|
2021-08-31 12:51:07 +03:00
|
|
|
|
2021-09-08 13:00:24 +03:00
|
|
|
let first = await wrap();
|
|
|
|
let second = await barfoo();
|
2021-08-31 12:51:07 +03:00
|
|
|
|
2021-09-08 13:00:24 +03:00
|
|
|
return { first, second };
|
2021-08-31 12:51:07 +03:00
|
|
|
}
|