Skip to content

Commit

Permalink
fix typespec 1 (#106)
Browse files Browse the repository at this point in the history
fix: new/1 typespec of value object
  • Loading branch information
yordis committed Oct 4, 2023
1 parent df6e29c commit ed780ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions apps/one_piece_commanded/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

## v0.19.1 - 2023-10-04

- Fixed `new/1` typespec of `OnePiece.Commanded.ValueObject`.

## v0.19.0 - 2023-06-15

`OnePiece.Commanded.ValueObject` implements `Ecto.Type`, it means that `cast/2`, `dump/2`, and `load/2` are
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ defmodule OnePiece.Commanded.ValueObject do
@doc """
Creates a `t:t/0`.
"""
@spec new(attrs :: map()) :: {:ok, %__MODULE__{}}
@spec new(attrs :: map()) :: {:ok, %__MODULE__{}} | {:error, Ecto.Changeset.t()}
def new(attrs) do
ValueObject.__new__(__MODULE__, attrs)
end
Expand Down
2 changes: 1 addition & 1 deletion apps/one_piece_commanded/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule OnePiece.Commanded.MixProject do
use Mix.Project

@app :one_piece_commanded
@version "0.19.0"
@version "0.19.1"
@elixir_version "~> 1.13"
@source_url "https://github.com/straw-hat-team/beam-monorepo"

Expand Down

0 comments on commit ed780ea

Please sign in to comment.