-
Notifications
You must be signed in to change notification settings - Fork 55
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
Fix type only imports 166 #210
base: master
Are you sure you want to change the base?
Conversation
Hang on this isn't ready. Got ahead of myself and just noticed the note about #162 |
@download13 planning to take another look at this at some stage? (no pressure) |
@rhys-vdw Yeah I kinda wandered off and forgot about it :P Looking back at my branch I realize why I stopped working. I think at the time the versions of typescript and ts-morph in the deps were quite old, and I ran into some errors while trying to update them. Now that those have been updated, and once #215 is merged, I should be able to use mixed type/value imports to finish off #166. |
Awesome. Merged and ready! |
I really enjoy auto-guard, at the point I manually edit the imports to match the type imports requirements of my setup 😅 |
Yep, looking forward to this being released 👍 |
I'm sure @download13 wouldn't mind if someone forks his branch and continues the work (if you're really keen) |
I need this because of For this use case, However Using |
@fthdgn I'm more than happy to bring you on as a collaborator if you're interested in making this happen. I'm not a regular typescript programmer anymore, let alone a consumer of this project. |
@rhys-vdw |
No pressure of course, but I'll be here to review, merge and release if you would like to. |
Fixes #166
Type imports in guard files can be type-only imports, which some build tools need to know which import statements to drop for runtime.
Code change is only one line, but test changes involve all test guards using type-only imports.
Incompatible with typescript versions prior to 3.8, so this is probably a breaking change.