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

Output types to .d.ts file #74

Open
krishnaglick opened this issue Aug 7, 2023 · 1 comment
Open

Output types to .d.ts file #74

krishnaglick opened this issue Aug 7, 2023 · 1 comment

Comments

@krishnaglick
Copy link
Contributor

Currently the transform function puts the types directly into the modified file. How feasible would it be to emit them to a named .d.ts file next to the altered file?
I'm working w/ jsx files that I cannot convert to typescript files at the moment and would love to just have the types living next to them!

@mskelton
Copy link
Owner

mskelton commented Aug 9, 2023

This project is very tied to jscodeshift, which I don't think supports that type of thing. Honestly I would recommend ts-migrate instead of ratchet as it's built on better principles IMO.

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

2 participants