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

Function resolvesToRuntime

ark/aot/host.ts:470–475  ·  view source on GitHub ↗
(
	specifier: string,
	opts: PrecompileOptions | undefined
)

Source from the content-addressed store, hash-verified

468
469// shadow mode keeps arktype, resolving only its config to the runtime
470export const resolvesToRuntime = (
471 specifier: string,
472 opts: PrecompileOptions | undefined
473): boolean =>
474 opts?.runtime !== "arktype" &&
475 !(opts?.shadow && specifier !== "arktype/config")
476
477export type RuntimeVariant = "none" | "lean" | "none-lean"
478

Callers 9

checkAliasesFunction · 0.90
untransformedProblemOfFunction · 0.90
stdinProblemOfFunction · 0.90
resolveEsbuildRuntimeFunction · 0.90
handlerFunction · 0.90
registerFunction · 0.90
precompileFunction · 0.90
messages.tsFile · 0.90
rewritesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected