Type alias AsyncFunction<P, R>

AsyncFunction<P, R>: ((...args) => Promise<R>)

Type Parameters

  • P extends any[] = any[]

  • R = any

Type declaration

    • (...args): Promise<R>
    • async function

      Parameters

      • Rest ...args: P
        Rest

      Returns Promise<R>