Replies: 1 comment 1 reply
-
Not very pretty, but here is how we do it
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
we have a couple models and want to extend the functionality of them consistently
is there a way to do this in typescript nicely?
if I use something like this
this works, and can extend a model, but by using any I lose all typing. can I retain the typing of the inputted model? I tried using e.g.
but it doesn't like this, and probably is still giving any types returned on some level
any nice way to do this?
Beta Was this translation helpful? Give feedback.
All reactions