From 9c4216bf946d3add18f7833123d518b92406453e Mon Sep 17 00:00:00 2001 From: Kaylen Mistry Date: Tue, 30 Mar 2021 12:14:32 +0100 Subject: [PATCH] update typespec for cursor_for_record function --- lib/paginator.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/paginator.ex b/lib/paginator.ex index 410515a..71a1a40 100644 --- a/lib/paginator.ex +++ b/lib/paginator.ex @@ -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,