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

Function addLoaded

ark/aot/scan.ts:626–632  ·  view source on GitHub ↗
(
	loaded: LoadedSources,
	id: string,
	source: string
)

Source from the content-addressed store, hash-verified

624export type LoadedSources = Map<string, string | null>
625
626export const addLoaded = (
627 loaded: LoadedSources,
628 id: string,
629 source: string
630): void => {
631 loaded.set(id, !loaded.has(id) || loaded.get(id) === source ? source : null)
632}
633
634// why the bundle may hold a read its scan didn't see, if it may
635export const unseenProblemOf = (

Callers 3

loadEsbuildModulesFunction · 0.90
handlerFunction · 0.90
prune.test.tsFile · 0.90

Calls 3

getMethod · 0.65
setMethod · 0.45
hasMethod · 0.45

Tested by

no test coverage detected