-
Notifications
You must be signed in to change notification settings - Fork 25
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 migrate? #90
Comments
Thanks for checking in! Remount should already have TypeScript types available. They're written using TypeScript's Jsdoc syntax. |
That has nothing to do with Typescript. These are documentation while Typescript allows us to transpile the code to more targets. Using this library from React with Typescript requires us to manually declare modules using ``.d.ts I think you misunderstood what I meant, therefore It makes sense to open the issue again and let someone contribute on this issue. |
Interesting - thanks for this report! This was not the intention at all - there are .d.ts files shipped with the npm distribution (https://cdn.jsdelivr.net/npm/[email protected]/dist/), but it looks like something may be amiss if .d.ts are manually required. The idea was to write Remount in .js files, document it with jsdoc, then use TypeScript to generate .d.ts files from the jsdoc documentation comments.
...apart from being documentation, it's also there for type checking ( Granted I haven't had a chance to test this out myself so something might be amiss. Keen to hear any ideas! |
@rstacruz Shipping the .d.ts files is the right idea, but I think it also needs a reference in package.json like |
Pull request #92 fixes this. |
Hello.
Just found this library from https://stackoverflow.com/a/73214171 and so far looks very promising.
I wanted to ask, are there any plans to migrate it to Typescript, if yes then I can try to contribute on this part.
Regards.
The text was updated successfully, but these errors were encountered: