Skip to content

How to set the type with combine? #219

Closed Answered by dai-shi
kaisiant asked this question in Q&A
Discussion options

You must be logged in to vote

I suppose as Product[] is fine.

You could do combine<PrimaryState, SecondaryState>(), but then there's less reasoning to use combine. https://codesandbox.io/s/busy-dewdney-felo9?file=/src/App.tsx

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kaisiant
Comment options

Answer selected by kaisiant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants