Skip to content
Discussion options

You must be logged in to vote

Hi, it's definitely possible to annotate the type of the builder. It's described on this page. I guess you already noticed that it generates a private module by default. This is done so that the builder's typestate isn't exposed by default, and making it public requires a conscious decision. So, if you want to make the type signature of the builder public, you can change its visibility via builder(state_mod(vis = "...")). See more details about that in this section on that page

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by palapapa
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