You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am unable to use later TS version because of this error, can we drop the redundant type declarations in favor of native support (I don't think upgrading TS version breaks anything within the library)?
Alternatively can someone suggest how can I override types here as a workaround?
The text was updated successfully, but these errors were encountered:
You could use module augmentation to manually change the types in this lib to match the ones that you expect, or vice versa.
I am also using this library with typescript@4.8.4 and don't have a problem running the typescript compiler. When I downgraded to typescript@4.4 and had other issues than the one you described when I ran tsc, so I would suggest upgrading if you haven't already.
TS v4.4 brought in modifications to lib dom type defintions (reference).
These conflict with the types declared for
requestIdleCallback
andcancelIdleCallback
on global window here:The above results in below errors during build:
I am unable to use later TS version because of this error, can we drop the redundant type declarations in favor of native support (I don't think upgrading TS version breaks anything within the library)?
Alternatively can someone suggest how can I override types here as a workaround?
The text was updated successfully, but these errors were encountered: