( module: InternalModule, $: BaseScope )
| 25 | } |
| 26 | |
| 27 | export const bindModule = ( |
| 28 | module: InternalModule, |
| 29 | $: BaseScope |
| 30 | ): InternalModule => |
| 31 | new RootModule( |
| 32 | flatMorph(module, (alias, value) => [ |
| 33 | alias, |
| 34 | hasArkKind(value, "module") ? |
| 35 | bindModule(value, $) |
| 36 | : $.bindReference(value) |
| 37 | ]) |
| 38 | ) as never |
| 39 | |
| 40 | type exportSchemaScope<$> = { |
| 41 | [k in keyof $]: instantiateRoot<$[k]> |
no test coverage detected
searching dependent graphs…