Type alias Schema<R>

Schema<R>: {
    validate: ((v) => Result<R, ParseError>);
}

The Schema type is the basic building block of TypeRun. It represents the runtime validation of a data unit.

Type Parameters

  • R

    The TypeScript type matching the type that is validated at runtime by the schema.

Type declaration