Type 'Timeout' is not assignable to type 'number'
caused by wrong typing by gesture-handler
#1954
Labels
Type 'Timeout' is not assignable to type 'number'
caused by wrong typing by gesture-handler
#1954
Description
After upgrading to the latest version, all the
setTimeout
s andSetInterval
s types are broken.It turned out that somehow
RN-Gesture-Handler
picks theNode
types as default instead of theRN
types.I checked the previous versions and found that this issue was introduced by
v2.0.0
.Also, these are related to this issue:
Remove implicit inclusion of types #1420
This module unconditionaly includes node.d.ts for RN and this bring incorrect typings in project. #1384
Platforms
Screenshots
Steps To Reproduce
Expected behavior
Actual behavior
Snack or minimal code example
Package versions
17.0.2
0.65.2
2.3.2
2.4.1
The text was updated successfully, but these errors were encountered: