Type Alias Void<E>

Source
Expand description

A value that is either void or an error

Construct success with {} and an error with { err: ... }

type Void<E> = { err?: never; val?: never } | { err: E }