Replies: 4 comments
-
|
Hey @mlwyatt, I know this might not be exactly what you are looking for, but I find the pattern proposed in the |
Beta Was this translation helpful? Give feedback.
-
Thanks for reaching out! I agree that it's elegant but it's also a bit outdated (no support for outlets) and not quite what I'm after. I think what I want just isn't possible with the current state of TS |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
@mlwyatt give this a go |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've looked over #121 and #466 and while they are similar, they aren't quite what I'm looking for. I know when using TS I need to
declarethe*Targetproperties I want to use. I'm fine with that but I'm wondering if that can done dynamically.declareing all of the properties isn't too bad when there's only 1 or 2targets, but sometimes I have numeroustargetsand would like to avoiddeclareing every one of them when they're all very similar. It's a similar situation forvaluesandoutletsbut I use those far less thantargetsIs there a way to dynamically
declarethese properties or to tell TS thatControllerdoes correctly implementControllerWithTarget<Targets>below (while avoiding@ts-ignoreand similar) ?Any help is greatly appreciated, thanks!
Beta Was this translation helpful? Give feedback.
All reactions