• @description: 是否为promise

    类型参数

    • T = any

    参数

    • val: unknown

    返回 val is Promise<T>