Open charneykaye opened 1 year ago
There is no mystery here. The typings are wrong within this library, that's it. If I get the time I'll submit a pull request to fix this, I like having 0 type errors / warnings in my projects.
Is there al fix already for this? 👀
EDIT:
I've managed to pass the tsc
checks doing the following:
const RangeSlider = require('rn-range-slider').default;
There is no mystery here. The typings are wrong within this library, that's it. If I get the time I'll submit a pull request to fix this, I like having 0 type errors / warnings in my projects.
Is there already any fix?
I'm using rn-range-slider 2.2.2 with react-native 0.68.3
Here's my tsconfig.json file:
Typecheck fails as follows. My attempts to ask Typecheck to ignore this library have yet to be successful.
NOTE: Adding
"skipLibCheck": true,
has nothing to do with this. Contrary to numerous sources, this is for ignoring*.d.ts
files and you will see my errors are from.tsx
files.NOTE ALSO: adding
exclude: [ "node_modules" ]
also has no effect. Under normal circumstances, and contrary to numerous sources, this is an unnecessary redundancy.Posted to StackOverflow: https://stackoverflow.com/questions/75026405/app-fails-typescript-typecheck-when-rn-range-slider-installed