Skip to content

Commit

Permalink
fix: page_link_params supports integers
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Feb 10, 2025
1 parent 5ec5a29 commit 14da7fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ash_phoenix/live_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ defmodule AshPhoenix.LiveView do
Returns `:invalid` or a list of query link params.
"""
@spec page_link_params(Ash.Page.Offset.t(), String.t()) :: list(any()) | :invalid
@spec page_link_params(Ash.Page.Offset.t(), String.t() | pos_integer()) :: list(any()) | :invalid
def page_link_params(_, "first"), do: []

def page_link_params(%{__first__?: true}, "prev"), do: :invalid
Expand Down

0 comments on commit 14da7fd

Please sign in to comment.