Type alias IfExtendsPromise<T, A, B>

IfExtendsPromise<T, A, B>: IfExtends<T, Promise<any>, A, B>

Utility conditional type for promises

Type Parameters

  • T

    Target type

  • A

    Conditional type if T extends Promise

  • B

Template

Conditional type if T does not extend Promise

Generated using TypeDoc