More convenient way to get the type of a signal-store? #4541
Replies: 1 comment
-
Duplicate |
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
-
Is there any way to access the type of a store to have e.g. type-safe callbacks that can be passed to mutate the store type-safely?
Say for example in this conceptual example, where a store has many custom features with lots of complex fields:
How can I type
store
so that it has the type of MyStore etc. ?typeof MyStore
is not correct and after that I'm running out of ideas.Beta Was this translation helpful? Give feedback.
All reactions