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

Function scopeOfModule

ark/aot/droppedNarrow.ts:509–517  ·  view source on GitHub ↗
(mod: object)

Source from the content-addressed store, hash-verified

507}
508
509const scopeOfModule = (mod: object): BaseScope | undefined => {
510 for (const value of Object.values(mod)) {
511 if (hasArkKind(value, "root")) return value.$
512 if (hasArkKind(value, "module")) {
513 const nested = scopeOfModule(value)
514 if (nested) return nested
515 }
516 }
517}
518
519const recordObjectContainerDrops = (
520 container: Record<PropertyKey, unknown>,

Callers 1

recordDroppedNarrowsFunction · 0.85

Calls 1

hasArkKindFunction · 0.90

Tested by

no test coverage detected