-
Notifications
You must be signed in to change notification settings - Fork 37
Typescript migrations #53
Comments
I'll have to spend some time experimenting with this. Reading the above PR, and its associated issues, seems that there are alternative ways for implementing TS migrations |
@deluan Any interest in / openness to a PR that provides a workaround for using TypeScript? Pros:
Cons:
Thoughts? I'd love to be using TypeScript, but this tool seems like a must for Contentful migrations. Nice work! |
Hey folks – any updates on this? I'm very interested in getting TS migrations supported 😄 😅 |
In meanwhile, I forked this repo to add support for custom templates (with |
+1 for Typescript support :) |
Is there a level of simplified PR that you're likely to have time to review @deluan to make this package more TypeScript-friendly? I've found it fine to use this package with |
I have to admit I haven't had much time recently to work on this project, as I'm not actively using Contentful anymore. Also it does not help that I don't have much experience with TS, and not much opportunities to experiment with it. I put my comments on @trptcolin 's PR with my thoughts on the approach I'd like to implement, and I think (IMHO), that it should be straightforward to do that way What does not help is that seems like the integration tests are broken, and I have to spend some time fixing them before anything else is done in the project. |
Thanks @deluan :)
I was thinking that that might be something holding up approvals. Is that something I can help with fixing? |
Yes it is, and help would be very welcome, thanks for offering it! Send me an email if you decide to tackle it and need some help on setting up the environment to run integration tests locally. |
We can get acceptable typescript support with only a couple of changes:
/**
* @param {import("contentful-migration").default} migration
*/ This is reasonable non-invasive, and still allows us to use Typescript checking without waiting on contentful to land changes to |
It looks like tj/node-migrate#144 needs to be merged in before we can get typed migrations working.
The text was updated successfully, but these errors were encountered: