Skip to content

fix: Define Axon.ModelState.t() - #673

Closed
georgeguimaraes wants to merge 2 commits into
elixir-nx:mainfrom
georgeguimaraes:model-state-type
Closed

georgeguimaraes wants to merge 2 commits into
elixir-nx:mainfrom
georgeguimaraes:model-state-type

Conversation

@georgeguimaraes

@georgeguimaraes georgeguimaraes commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

Axon.ModelState has no @type t, so any downstream spec that says Axon.ModelState.t() gets an ex_doc warning about an undefined type. This adds it with the four struct fields as maps.

@polvalente polvalente left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let’s not add this since we don’t validate with dialyzer. Specs like these are prone to users submitting PRs fixing the spec itself

@polvalente polvalente closed this Sep 15, 2026
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