@aracna/core - v1.5.0
    Preparing search index...

    Function mtc

    • The mtc function stands for make try catch. It takes a function and returns a function that will return the result of the original function or an error.

      Aracna Reference

      Type Parameters

      • T

      Parameters

      • fn: (...args: any) => T

      Returns (...args: any) => Error | T