Skip to content

Commit 56ff170

Browse files
committed
Update opts_diff type to allow struct or map in prepare_map function
1 parent 2498375 commit 56ff170

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/jsonpatch/types.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ defmodule Jsonpatch.Types do
3232
- `:keys` - controls how path fragments are decoded.
3333
"""
3434
@type opts :: [{:keys, opt_keys()}]
35-
@type opts_diff :: [{:ancestor_path, String.t()} | {:prepare_map, (struct() -> map())}]
35+
@type opts_diff :: [{:ancestor_path, String.t()} | {:prepare_map, (struct() | map() -> map())}]
3636

3737
@type casted_array_index :: :- | non_neg_integer()
3838
@type casted_object_key :: atom() | String.t()

0 commit comments

Comments
 (0)