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

Method importsArktype

ark/aot/graph.ts:1361–1369  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

1359
1360 // an arktype entry other than its runtime, imported or required
1361 importsArktype(id: string): boolean {
1362 const source = this.host.readFile(id)
1363 return (
1364 source !== undefined &&
1365 /(?:from|import|require\()\s*["']arktype(?:\/(?!runtime)[^"']*)?["']/.test(
1366 source
1367 )
1368 )
1369 }
1370
1371 // outside node_modules, or in a package that opts in or the settings
1372 // precompile, but not a workspace package the settings run on arktype

Callers 2

resolveMethod · 0.95
readDependenciesOfMethod · 0.80

Calls 2

readFileMethod · 0.80
testMethod · 0.80

Tested by

no test coverage detected