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

Function exportedNamesOf

ark/repo/testBuild.ts:132–141  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

130const checker = program.getTypeChecker()
131
132const exportedNamesOf = (path: string) =>
133 new Set(
134 checker
135 .getExportsOfModule(
136 checker.getSymbolAtLocation(
137 program.getSourceFile(path.replace(/js$/, "d.ts"))!
138 )!
139 )
140 .map(symbol => symbol.name)
141 )
142
143for (const pkg of packages) {
144 const { name } = JSON.parse(

Callers 1

testBuild.tsFile · 0.85

Calls 2

replaceMethod · 0.80
mapMethod · 0.65

Tested by

no test coverage detected