radash
radash copied to clipboard
`isPromise` misleading in type definitions, it should return `value is PromiseLike<>`
isPromise
doesn't really checks for value to be instance of Promise
class, it checks if value is promise like, so it should return correct typings
It should be
export const isPromise = (value: any): value is PromiseLike<any> => {