sindresorhus / is

Type check values
MIT License
1.68k stars 109 forks source link

`is.asyncFunction()` type-checking incorrect #127

Closed TenviLi closed 3 years ago

TenviLi commented 3 years ago

Generics do not work properly, resulting in type recognition as unknown

image

As a result, the type guard is invalid and I have to assert the type manually

image

image

TenviLi commented 3 years ago

sorry, i have solved it

image

just put a ReturnType