Skip to content

Commit

Permalink
update typespec for cursor_for_record function
Browse files Browse the repository at this point in the history
  • Loading branch information
kaylenmistry committed Mar 30, 2021
1 parent 9b4b861 commit 9c4216b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paginator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ defmodule Paginator do
iex> Paginator.cursor_for_record(%Paginator.Customer{id: 1, name: "Alice"}, [id: :asc, name: :desc])
"g3QAAAACZAACaWRhAWQABG5hbWVtAAAABUFsaWNl"
"""
@spec cursor_for_record(any(), [atom], (map(), atom() | {atom(), atom()} -> any())) :: binary()
@spec cursor_for_record(any(), [atom() | {atom(), atom()}], (map(), atom() | {atom(), atom()} -> any())) :: binary()
def cursor_for_record(
record,
cursor_fields,
Expand Down

0 comments on commit 9c4216b

Please sign in to comment.