A value resolver for MapWithArguments transformation to forward some value from extraArguments
object
#344
micalevisk
started this conversation in
Show and tell
Replies: 1 comment 6 replies
-
EDIT:nvm '-' I got it now. btw @nartc do you think that the second type arg of my It would be better if I could use it like this: makeExtraArgsPropForwardingResolver<ExtraArgs>('bar'), tbh I'm using TS for while but I'm still trying to understand how do you manage to let |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've made a value resolver for
mapWithArguments
that just forwards values passed toextraArguments
object.You can use this
makeExtraArgsPropForwardingResolver
factory passing the name of the property that you want to look up inextraArguments
.You can use it like this (in TypeScript):
My solution:
make-extra-args-prop-forwarding-resolver.ts
fileIf someone could improve this somehow or have another solution, share with me, please! :)
Beta Was this translation helpful? Give feedback.
All reactions