MCPcopy Create free account
hub / github.com/effect-app/libs / parseRule

Function parseRule

packages/vue/src/form.ts:373–383  ·  view source on GitHub ↗
(v: unknown)

Source from the content-addressed store, hash-verified

371 maximum: metadata.exclusiveMaximum ?? metadata.maximum
372 })
373 ]
374
375 const parseRule = (v: unknown) =>
376 pipe(
377 parse(v),
378 Exit.match({
379 onFailure: (cause) => {
380 const err = Cause.findErrorOption(cause)
381 return Option.isSome(err) ? renderError(err.value, v) : "Unknown error"
382 },
383 onSuccess: () => true
384 })
385 )
386

Callers

nothing calls this directly

Calls 3

renderErrorFunction · 0.85
pipeFunction · 0.50
parseFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…