ESCalc - v0.0.1-beta.2
    Preparing search index...

    Function executeSafe

    • The same as execute but returns a discriminated union instead of throwing. Non-ESCalcError exceptions are still re-thrown.

      Parameters

      Returns { result: unknown; type: "success" } | { error: ESCalcError; type: "error" }

      { type: 'success', result } on success, or { type: 'error', error } on failure.