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

    Function mtcp

    • The mtcp function stands for make try catch promise. It takes an async 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) => Promise<T>

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