Replies: 1 comment
-
I was looking for a similar solution @mogarick and I noticed this relevant comment in the issues tracker #1359 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a simple factory to create MST models that need to have other objects injected on creation and I do it in the factory. The thing is that it's currently not typed.
I want to type it but I don't know how to solve it with typescript.
Here is my current simple factory fn
Type
is a Model such asTodo
:data
is the data used to create the model.depInjectionObjA
anddepInjectionObjB
are objects injected from the module where the factory fn resides.``
So an example call is:
Could anybody help me to solve this?
Thank you in advance! :D
Beta Was this translation helpful? Give feedback.
All reactions