remix/data-schema · Type

View Source

Check

Summary

A reusable check for use with schema.pipe(...).

Signature

type Check<output> = {
  check: (value: output) => boolean
  code?: string
  message?: string
  values?: Record<string, unknown>
}