Type Alias Result<Value>

Result<Value>: Ok<Value> | Issue[] | null

A result returned from a shape after it was applied to an input value.

  • If null then the input value is valid and wasn't transformed.
  • If an Ok instance then the input value is valid and was transformed.
  • If an array of issues then the input value is invalid.

Type Parameters

  • Value = any

    The output value.