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

Generate typescript declaration files #1

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

Reagankm
Copy link

When I tried using AnimatedEllipsis in my project, I got the following warning:

Could not find a declaration file for module 'rn-animated-ellipsis'. '/.../node_modules/rn-animated-ellipsis/index.js' implicitly has an 'any' type.   Try npm i --save-dev @types/rn-animated-ellipsis if it exists or add a new declaration (.d.ts) file containing declare module 'rn-animated-ellipsis';

So I followed Typescript's instructions to generate this .d.ts file, which involved adding Typescript, creating a tsconfig.json, and running npx tsc.

I verified it locally with yarn add file:[path/to/folderLocation] to use this version of rn-animated-ellipsis in my project.

@Reagankm
Copy link
Author

@Thanhal-P-A How does this look to you? It's been working in my project for the last year

@Reagankm
Copy link
Author

Reagankm commented Dec 5, 2024

@Thanhal-P-A
Checking to see if this can be approved and committed

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

Successfully merging this pull request may close these issues.

1 participant