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

Function isTopLevelType

ark/aot/graph.ts:6637–6640  ·  view source on GitHub ↗
(declaration: LocalType)

Source from the content-addressed store, hash-verified

6635})
6636
6637const isTopLevelType = (declaration: LocalType): boolean =>
6638 declaration.parent?.type === "Program" ||
6639 (declaration.parent?.type === "ExportNamedDeclaration" &&
6640 declaration.parent.parent?.type === "Program")
6641
6642const typeCacheKeyOf = (
6643 depth: number,

Callers 2

declaredTypeKindOfMethod · 0.85
propTypesOfMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected