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

Function transformsFailing

ark/type/checkers.ts:938–950  ·  view source on GitHub ↗
(
	declared: Props,
	checker: Checker,
	withCtx?: 1
)

Source from the content-addressed store, hash-verified

936 transformingProps(declared, closedProps(declared, description))) satisfies Fn
937
938const transformsFailing = (
939 declared: Props,
940 checker: Checker,
941 withCtx?: 1
942): Checker => {
943 const changing = changingIn(declared)
944 checker.t = failingValues(
945 (data, values) => writtenValues(declared, changing, data, values),
946 Object.values(declared),
947 withCtx
948 )
949 return checker
950}
951
952export const failingProps = ((declared: Props, withCtx?: 1): Checker =>
953 transformsFailing(declared, props(declared), withCtx)) satisfies Fn

Callers 1

checkers.tsFile · 0.85

Calls 3

failingValuesFunction · 0.85
changingInFunction · 0.70
writtenValuesFunction · 0.70

Tested by

no test coverage detected