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 - export types #32

Open
wilav-dev opened this issue May 14, 2022 · 2 comments
Open

typescript - export types #32

wilav-dev opened this issue May 14, 2022 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@wilav-dev
Copy link

I'm getting TS7016: Could not find a declaration file for module 'react-recompose'.

Is there any @types?

@brodybits brodybits added bug Something isn't working enhancement New feature or request labels Jan 18, 2023
@brodybits brodybits changed the title typescript typescript - @types declarations? Jan 18, 2023
@brodybits brodybits changed the title typescript - @types declarations? typescript - export types? Jan 18, 2023
@brodybits
Copy link
Collaborator

brodybits commented Jan 18, 2023

updated: I think your best bet for now would be to add @types/recompose. Install like this as I have documented:

yarn add recompose@npm:react-recompose
yarn add --dev @types/recompose

I think newer versions of npm will support this kind of installation as well.

And I think this info needs to be documented. - done

It would surely be nicer to export types from the package with a dtd. I recall there should be a way to do this with JSDoc comments but not how.

I cannot promise when I may get a chance to work on this. My apologies for the super-long delay!


P.S. recompose seems to have quite a bit of existing Flow type support, should investigate how much can be reusable or simply ported to TypeScript. I noticed that in Prettier, there is quite a bit of overlap between flow & typescript in its Babel parser options (babel-flow & babel-ts) and a number of tests.

brodybits added a commit that referenced this issue Jan 26, 2023
@brodybits brodybits changed the title typescript - export types? typescript - export types Jan 26, 2023
@brodybits brodybits added help wanted Extra attention is needed and removed bug Something isn't working labels Jan 26, 2023
@brodybits
Copy link
Collaborator

New @types/react-recompose was proposed: DefinitelyTyped/DefinitelyTyped#66654

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants