Class Schema<T, E>Abstract

Define a schema to encode / decode convert type T to type E.

Type Parameters

  • T
  • E

Hierarchy (view full)

Constructors

Methods

  • Optional validator that can be used to enforce constraints on the data before encoding / after decoding.

    Parameters

    • _value: T

    Returns void