Hey folks, I'm working on Typescript bindings for db-migrate and db-migrate-pg
I've got a couple of questions (aimed at @wzrdtales): (1) Should I work on a fork of the node-db-migrate bin that can spit out Typescript migration scripts? Would it get accepted? (2) My typescript definition for "db-migrate" actually covers db-migrate/db-migrate-base, should it get switched to the correct name?
ok, I'm not that deep into typescript yet, but certainly it would be possible to get such a feature into db-migrate. There is currently also a request open for the babel transpiler to use es6/7 in migrations and I recently decided to give support back to the community by providing a plugin system for db-migrate for exactly things like what you currently do.
Also take a look here db-migrate/node-db-migrate#388 and here db-migrate/node-db-migrate#396
As you just want ts migrations that should be fine though, rewriting all of db-migrate into typescript would be another thing and that would be definitely subject to discussion.
yeah already seen it, also that it seems a bit unmaintainable to have so many definitions in just one repository, there is quite a lot in there.I definitely need to give TS a read, wanted to do that sometime anyway, maybe now is a good time :)