On this page

Type Alias Result<T, E>

Result: { result: "success"; value: T } | { result: "error"; value: E }

A type used for returning and propagating errors. The first element of the union represents success and contains a value, and the second represents an error and contains an error value.

Type Parameters

  • T
  • E
Was this helpful?
SDK JS
Reference
Result