MCPcopy Create free account
hub / github.com/arktypeio/arktype / bindModule

Function bindModule

ark/schema/module.ts:27–36  ·  view source on GitHub ↗
(
	module: InternalModule,
	$: BaseScope
)

Source from the content-addressed store, hash-verified

25}
26
27export const bindModule = (
28 module: InternalModule,
29 $: BaseScope
30): InternalModule =>
31 new RootModule(
32 flatMorph(module, (alias, value) => [
33 alias,
34 hasArkKind(value, "module") ? bindModule(value, $) : $.bindRef(value)
35 ])
36 ) as never
37
38type exportSchemaScope<$> = {
39 [k in keyof $]: instantiateRoot<$[k]>

Callers 1

exportFunction · 0.90

Calls 2

flatMorphFunction · 0.90
hasArkKindFunction · 0.90

Tested by

no test coverage detected