Check

View Source

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>;
};