Repository navigation
fix(rivetkit): type c.conn.state from createConnState in actions - #5856
Draft
eersnington wants to merge 1 commit into
Draft
eersnington wants to merge 1 commit into
eersnington wants to merge 1 commit into
Conversation
|
This PR was not deployed automatically as @eersnington does not have access to the Railway project. In order to get automatic PR deploys, please add @eersnington to your workspace on Railway. |
Contributor
Review (updated for the overload-based approach)The PR now uses two What looks good
Concerns and suggestions
Overall this looks good. Items 1 and 3 are the ones I would address before merging. |
eersnington
force-pushed
the
stack/fix-rivetkit-type-conn-state-from-createconnstate-urqpmypm
branch
from
October 11, 2026 20:26
da4a60c to
72ce828
Compare
eersnington
force-pushed
the
stack/fix-rivetkit-type-conn-state-from-createconnstate-urqpmypm
branch
from
October 18, 2026 00:44
72ce828 to
f72321e
Compare
eersnington
marked this pull request as draft
October 18, 2026 03:50
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Infer
c.conn.statein actions from the return type ofcreateConnState. Before this change, it wasunknownwhen thecreateConnStatecontext parameter had no annotation.actor()insrc/actor/definition.tshas two overloads:cin actions throughactions?: TActions & Actions<...>createConnStatecomes beforeactionsTActionsconstraint, as beforeactionscomes before a hook with an annotatedparamsorinputAll configs that compiled before still compile.
tracingusesNoInfer<TActions>, sotracing.actionscan come beforeactionsand name only some of them.ActorConfigInputkeeps its type. The newActorConfigInputBaseholds every field exceptactions.Trade-off: if the shape of the config object is wrong, for example an unknown key or a non-function action, TypeScript shows
No overload matches this callwith one error for each overload. Errors inside hooks and actions do not change.This is part 1 of 2 in a stack: