Type alias LDMethodResult<TResult>

LDMethodResult<TResult>: {
    result: TResult;
    success: true;
} | {
    error: any;
    success: false;
}

Migration methods may return an LDMethodResult. The implementation includes methods for creating results conveniently.

An implementation may also throw an exception to represent an error.

Type Parameters

  • TResult

Type declaration

  • result: TResult
  • success: true

Type declaration

  • error: any
  • success: false

Generated using TypeDoc