react-native-countdown-component icon indicating copy to clipboard operation
react-native-countdown-component copied to clipboard

@Types for TypeScript projects

Open gabrielgaava opened this issue 4 years ago • 3 comments

I'm having some issue with types in an TypeScript project. I think that would be great for some people that are in the same scenario.

Error message: Could not find a declaration file for module 'react-native-countdown-component'. appFolder/node_modules/react-native-countdown-component/index.js' implicitly has an 'any' type. Try npm install @types/react-native-countdown-component if it exists or add a new declaration file.

gabrielgaava avatar Nov 16 '20 22:11 gabrielgaava

👍 I've got the same issue

weisensee avatar May 01 '21 18:05 weisensee

I got the same issue here. Workaround until types is declared: const CountDown = require('react-native-countdown-component').default;

coy123 avatar May 05 '21 13:05 coy123

FYI - I opened a PR on DefinitelyTyped: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/54642

ktamir avatar Jul 20 '21 11:07 ktamir