We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a typescript type that has several variants:
type PresenceType = | { status: "offline" } | { eventId: string status: "in-class" } | { eventId: string | null gameId: string | null status: "in-play" } const store = syncedStore({ presence: boxed({ status: "offline", }) as Box<PresenceType>, })
Now how do I assign this boxed object? The following is not allowed due to presence being read-only:
presence
store.presence = boxed({ status: "in-class", eventId: "xyz" })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have a typescript type that has several variants:
Now how do I assign this boxed object? The following is not allowed due to
presence
being read-only:The text was updated successfully, but these errors were encountered: