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

Function namesReadBy

ark/type/standalone/units.ts:153–158  ·  view source on GitHub ↗
(unit: RootUnit, returned: string[])

Source from the content-addressed store, hash-verified

151 ])
152
153export const namesReadBy = (unit: RootUnit, returned: string[]): Set<string> =>
154 new Set(
155 calledMembersOf(unit.members, returned).flatMap(
156 ([, source]) => source.match(/[\w$]+/g) ?? []
157 )
158 )
159
160// strict even where a bundle's CJS or IIFE output isn't
161export const isWriting = (member: string): boolean =>

Callers 2

writeSharedModuleMethod · 0.90
writeBodyMethod · 0.90

Calls 2

calledMembersOfFunction · 0.85
matchMethod · 0.80

Tested by

no test coverage detected