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

Function decodedValueOf

ark/schema/shared/codecs.ts:281–282  ·  view source on GitHub ↗
(value: BaseRoot, $: BaseScope)

Source from the content-addressed store, hash-verified

279// without exactOptionalPropertyTypes, a default replaces undefined, so it's
280// never what was decoded
281const decodedValueOf = (value: BaseRoot, $: BaseScope): BaseRoot =>
282 $.cfg.exactOptionalPropertyTypes === false ? withoutUndefined(value) : value

Callers 2

mapperFunction · 0.85
requireDefaultablesFunction · 0.85

Calls 1

withoutUndefinedFunction · 0.90

Tested by

no test coverage detected