Skip to content

Commit

Permalink
fix: fix dialyzer types for AshGraphql.Type
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Dec 4, 2023
1 parent 4517a27 commit c5163d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/type.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ defmodule AshGraphql.Type do
So you can use this to decide what it will be named. Otherwise, it behaves as stated above for
regular types.
"""
@callback graphql_type(Ash.Type.constraints()) :: :atom
@callback graphql_type(Ash.Type.constraints()) :: atom

@doc """
Sets the name of the graphql input type for a given Ash type. For example: `:weekday`.
Expand All @@ -39,7 +39,7 @@ defmodule AshGraphql.Type do
So you can use this to decide what it will be named. Otherwise, it behaves as stated above for
regular types.
"""
@callback graphql_input_type(Ash.Type.constraints()) :: :atom
@callback graphql_input_type(Ash.Type.constraints()) :: atom

@doc """
Used for `Ash.Type.Enum` to rename individual values. For example:
Expand All @@ -53,7 +53,7 @@ defmodule AshGraphql.Type do
end
```
"""
@callback graphql_rename_value(Ash.Type.constraints()) :: String.t() | :atom
@callback graphql_rename_value(Ash.Type.constraints()) :: String.t() | atom

@doc """
Used for map/embedded types embedded in unions, to avoid nesting them in a key by their name.
Expand Down

0 comments on commit c5163d4

Please sign in to comment.