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

Function isTypeOnly

ark/aot/graph.ts:7438–7445  ·  view source on GitHub ↗
(statement: Node)

Source from the content-addressed store, hash-verified

7436
7437// only a type-only import or export skips running its module
7438export const isTypeOnly = (statement: Node): boolean =>
7439 statement.type === "ImportDeclaration" ? statement.importKind === "type"
7440 : (
7441 statement.type === "ExportNamedDeclaration" ||
7442 statement.type === "ExportAllDeclaration"
7443 ) ?
7444 statement.exportKind === "type"
7445 : false
7446
7447const constructsByModule = new WeakMap<SourceModule, boolean>()
7448

Callers 4

importsCodecsMethod · 0.90
importsInMethod · 0.90
checkConfigOrderMethod · 0.90
importsValuesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected