Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Handle union type in store - SolidJS
S
SolidJS
โข
3y ago
โข
3 replies
phungleson
Handle union type in store
Hi peeps
,
I would like to store union type like this
type Post = NewPost | DeletedPost;
type Post = NewPost | DeletedPost;
in a store
.
https://playground.solidjs.com/anonymous/7210c31b-5730-4e51-b875-3d8e2f36af4c
It seems to work but I wonder if there is a way to tell solid more about the types and avoid type check errors
?
Thanks
!
SolidJS
Join
Solid is a declarative reactive Javascript library for creating user interfaces.
12,274
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How to handle repeatedly updating a value in a large Store
S
SolidJS / support
2y ago
Reactivity in store
S
SolidJS / support
2y ago