radash icon indicating copy to clipboard operation
radash copied to clipboard

`isPromise` misleading in type definitions, it should return `value is PromiseLike<>`

Open anion155 opened this issue 6 months ago • 1 comments

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> => {

anion155 avatar Jul 26 '24 08:07 anion155