-
-
Notifications
You must be signed in to change notification settings - Fork 544
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
feat(migrations): allow specifying list of migrations #741
Conversation
@@ -1,5 +1,5 @@ | |||
import umzug, { Umzug } from 'umzug'; | |||
import { Utils, Constructor } from '@mikro-orm/core'; | |||
import umzug, { Umzug, migrationsList } from 'umzug'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this fails in the CI as well as on my end, probably bad/outdated typings? the migrationsList
is in the sources, but not in the d.ts
maybe we could access it from the umzug
default export, or we would need to augment the typings (via declaration merging)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried everything I could but ultimately this seems to be the only way I am able to fix this until the typings are merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we could use your fork as a dependency?
or as i mentioned before, we could use declaration merging
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not know how to do this. Would you mind showing how to do this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://www.typescriptlang.org/docs/handbook/declaration-merging.html
https://stackoverflow.com/questions/37377731/extend-express-request-object-using-typescript
(the use case is pretty much the same as adding custom props to expess.req object)
This pull request introduces 1 alert when merging b23ef06 into 0474787 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 16669d9 into 0474787 - view on LGTM.com new alerts:
|
Ok, tests are green, let's merge this, will take a look at the typings later |
I fixed it here: c380d99 |
Hmm damn umzug and their mediocre typings...
What about that PR you made against definitely typed, is that merged already? |
|
No description provided.