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

Function runtimeVariantOf

ark/aot/host.ts:479–487  ·  view source on GitHub ↗
(
	opts: PrecompileOptions | undefined
)

Source from the content-addressed store, hash-verified

477export type RuntimeVariant = "none" | "lean" | "none-lean"
478
479export const runtimeVariantOf = (
480 opts: PrecompileOptions | undefined
481): RuntimeVariant | undefined =>
482 opts?.optimizeErrors === "size" ?
483 opts.errors === "none" ?
484 "none-lean"
485 : "lean"
486 : opts?.errors === "none" ? "none"
487 : undefined
488
489// loaded in place of @ark/schema's runtime, but not in shadow mode
490export const resolvedVariantOf = (

Callers 2

constructorMethod · 0.90
resolvedVariantOfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected