objection.js
objection.js copied to clipboard
fix: Generic static This.
Attempt to fix https://github.com/Vincit/objection.js/issues/2531. Should probably be extended to be used in all static This inferences.
i know this is a while ago, but can you give an example of what was broken before? Since this is not maintained anymore, I am ingesting all fixes into my fork. This seems similar to lots of other typescript fixes that were already proposed and merged into my fork. Woudl love to add your fix too
I am not sure what additional context to give apart from the issue #2531 that is already linked. It seems like this fix is/was needed in order to have the changes from #2399 (which has been reverted).
This looks reasonable. @max-kahnt-keylight could you follow up with another PR to use the same approach in all static this inferences?
💚 Very much appreciated that you are getting back to this even though the issue currently doesn't haunt me personally.
I created https://github.com/Vincit/objection.js/pull/2700 now. I am not sure if I will be able to test it reasonably and push its finalization, but I think it definitely makes sense to have this in all such places 👍🏼