react-native-looped-carousel icon indicating copy to clipboard operation
react-native-looped-carousel copied to clipboard

Added typings file

Open sqlProvider opened this issue 8 years ago • 4 comments

Added typings file for TypeScript

sqlProvider avatar Mar 15 '17 20:03 sqlProvider

Do we need this? We're already using PropTypes. Is this file necessary when one wants to use the package in typescript or something?

viktorsec avatar May 11 '17 09:05 viktorsec

If we're merging this - we'll need to support this...

phil-r avatar May 11 '17 11:05 phil-r

I'm using react-native with typescript. I am getting this error when this file is not in the project.

[ts]
Could not find a declaration file for module 'react-native-looped-carousel'. '/path/to/project/node_modules/react-native-looped-carousel' implicitly has an 'any' type.
  Try `npm install @types/react-native-looped-carousel` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-native-looped-carousel';`

this problem can be solved in two ways. 1- creating pull request on @types repo. 2-creating pull request on project repo.

I can open pull request to @types repo if you want.

sqlProvider avatar Sep 13 '17 13:09 sqlProvider

need typings +1

UncleYee avatar Nov 15 '19 13:11 UncleYee