Generic reader interface that can be used to read O value form the input I value. Reader may fail and error is denoted by X type.

Type Parameters

  • O = unknown

    The output type of this reader

  • I = unknown

    The input type of this reader.

  • X extends {} = Schema.Error

    The error type denotes failure reader may produce.

Hierarchy

  • Reader

Properties

Properties

read: ((input) => Schema.Result<O, X>)

Type declaration

Generated using TypeDoc