Appearance
@miyue-mma/shared / isPromise
function isPromise<T>(val): val is Promise<T>
判断是否为 Promise
• T = any
any
unknown
待判断的值
val is Promise<T>