Void: { err?: never; val?: never } | { err: E }

A value that is either void or an error

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

Type Parameters

  • E