MCPcopy
hub / github.com/arktypeio/arktype / bindModule

Function bindModule

ark/schema/module.ts:27–38  ·  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") ?
35 bindModule(value, $)
36 : $.bindReference(value)
37 ])
38 ) as never
39
40type exportSchemaScope<$> = {
41 [k in keyof $]: instantiateRoot<$[k]>

Callers 1

exportFunction · 0.90

Calls 2

flatMorphFunction · 0.90
hasArkKindFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…