Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript support #17

Closed
byron-devika opened this issue Jan 21, 2020 · 4 comments
Closed

TypeScript support #17

byron-devika opened this issue Jan 21, 2020 · 4 comments
Labels
question Further information is requested

Comments

@byron-devika
Copy link

Hi,

Are there plans for types support for this in the future?

"Could not find a declaration file for module 'react-native-confetti-cannon'. '../node_modules/react-native-confetti-cannon/src/index.js' implicitly has an 'any' type.

Try npm install @types/react-native-confetti-cannon if it exists or add a new declaration (.d.ts) file containing declare module 'react-native-confetti-cannon';ts(7016)"

@leofontes
Copy link

For now you can add a file anywhere in your project ending in .d.ts for example confetti-cannon.d.ts and inside the file:

declare module 'react-native-confetti-cannon' {
  export * from 'react-native-confetti-cannon'
}

Hopefully they add the support in a future version

@VincentCATILLON
Copy link
Owner

Hi @byron-devika , sorry for the long delay.

Yes, TS is in the migration plan as it's more used than Flow. Flow definitions files will remain to be able to use it in projects using flow :)

@VincentCATILLON VincentCATILLON added the question Further information is requested label Mar 25, 2020
@VincentCATILLON
Copy link
Owner

Done in #33

@byron-devika
Copy link
Author

Thank you @VincentCATILLON & @junhoyeo
Much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants