• Make any Async function that returns a promise support the old NodeJS callback style. And return the promise that supports thenCall method.

    Type Parameters

    • T extends ((...args) => Promise<TReturn>)

    • TArgs = any

    • TReturn = any

    Returns MethodDecorator

    Decorated method