-
I have a feature, const myState = signalStore(
myFeature(),
...
) That feature is going to be used in different stores, with other methods, features, computed, etc added. I need to get the base state type that that feature generates to use it in some wrapper generic components that just care about that feature. |
Beta Was this translation helpful? Give feedback.
Answered by
Pizzicato
Apr 29, 2025
Replies: 1 comment 6 replies
-
Ay, happy to help but can you give me a more detailed example please? |
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
Hi, thanks!
I didn't think of writing a explicit type, but it would be quite monstrous and hard to maintain as the
withCrud
feature includes quite a bit of methods and properties. I have created these type utils to make the conversion and they seem to be working but I'm not sure how hacky they are, what do you think?