Skip to content

fix(ai/rsc): Fix types for createStreamableValue and createStreamableUI#1735

Merged
shuding merged 3 commits intomainfrom
shu/htf4
May 29, 2024
Merged

fix(ai/rsc): Fix types for createStreamableValue and createStreamableUI#1735
shuding merged 3 commits intomainfrom
shu/htf4

Conversation

@shuding
Copy link
Copy Markdown
Member

@shuding shuding commented May 29, 2024

TSC can't automatically generate circular types:

https://www.typescriptlang.org/play/?#code/GYVwdgxgLglg9mABMOcAUBKRBvAUIxCBAZykWMQF4d8DEQAHAEwEMoBTALkUyoD5ytAL60ATuyghRSYrhFA

Note that update: () => any is not great, which is why createStreamableValue and createStreamableUI don't have correct types inferred.

@shuding shuding merged commit f9dee8a into main May 29, 2024
@shuding shuding deleted the shu/htf4 branch May 29, 2024 17:08
Rajaniraiyn pushed a commit to Rajaniraiyn/ai that referenced this pull request Jun 1, 2024
…bleUI` (vercel#1735)

Co-authored-by: Lars Grammel <lars.grammel@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants