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 definitions planned for release any soon? #1

Open
vladimirmoushkov opened this issue Mar 23, 2019 · 16 comments
Open

Typescript definitions planned for release any soon? #1

vladimirmoushkov opened this issue Mar 23, 2019 · 16 comments

Comments

@vladimirmoushkov
Copy link
Contributor

Thank you!

@vladimirmoushkov vladimirmoushkov changed the title Typescript typings planned for release any soon? Typescript definitions planned for release any soon? Mar 24, 2019
@winhtaikaung
Copy link
Owner

Hi @vladimirmoushkov .Thanks for the issue, I m willing to release Typescript definitions too , As I m not that fluent in TypeScript I may need some one's help.
I do appreciate if you could help me to migrate to typescript.

Thanks

@vladimirmoushkov
Copy link
Contributor Author

I have created a #2.

Still failing to active the full functionality. Could you help me with fixing the parsing error?

@winhtaikaung
Copy link
Owner

Sure @vladimirmoushkov . Can you please check the comments from #2 before we proceed?
Thanks

@vladimirmoushkov
Copy link
Contributor Author

vladimirmoushkov commented Mar 30, 2019 via email

@winhtaikaung
Copy link
Owner

Sure please feel free to improve @vladimirmoushkov

@vladimirmoushkov
Copy link
Contributor Author

vladimirmoushkov commented Apr 1, 2019 via email

Repository owner deleted a comment from allcontributors bot Apr 2, 2019
Repository owner deleted a comment from allcontributors bot Apr 2, 2019
@winhtaikaung
Copy link
Owner

@all-contributors please add @vladimirmoushkov for code

@allcontributors
Copy link
Contributor

@winhtaikaung

I've put up a pull request to add @vladimirmoushkov! 🎉

@winhtaikaung
Copy link
Owner

Thank you @vladimirmoushkov for you help.Released the react-tiny-link typescript version 1.0.0 to npm.

Cheers
🍻

@devuxer
Copy link

devuxer commented Oct 6, 2020

@winhtaikaung,

I feel like I'm missing something really obvious, but I'm not able to use this package in TypeScript at all.

There is no d.ts file in the react-tiny-link/lib folder in node_modules:

image

There is no @types/react-tiny-link in NPM:

image

And I am not able to import the module as specified in the docs:

image

Please help 🙏

@devuxer
Copy link

devuxer commented Oct 6, 2020

Follow-up:

It looks like the main problem is with "typings": "src/lib/index.d.ts", in package.json. When I install the package, there is no lib folder inside src, so typings cannot be found. If I remove "/lib", it seems to work.

That said, there seem to be other problems which prevent the TypeScript compiler from succeeding, such as missing types for styled-components.

@winhtaikaung
Copy link
Owner

Follow-up:

It looks like the main problem is with "typings": "src/lib/index.d.ts", in package.json. When I install the package, there is no lib folder inside src, so typings cannot be found. If I remove "/lib", it seems to work.

That said, there seem to be other problems which prevent the TypeScript compiler from succeeding, such as missing types for styled-components.

Hey @devuxer thanks for reporting
I will take alook,

@winhtaikaung winhtaikaung reopened this Oct 8, 2020
@dong8898
Copy link

Any update the issue? Please help! Waiting for the TypeScript version :)

@masroore
Copy link

masroore commented Jul 7, 2022

Not usable in typescript. Any updates?

@OhYello
Copy link

OhYello commented Mar 5, 2023

Any new updates on using this with typescript?

@ravmhmmd
Copy link

Hi, I'm facing the same issue here. It's working fine when I used npm run dev, but it's showing error when I want to build the app.

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

No branches or pull requests

7 participants