Fix -spec declaration to prevent dialyzer problems.
This commit is contained in:
parent
da88071cdd
commit
d560d7ff3a
2 changed files with 9 additions and 5 deletions
|
@ -60,8 +60,11 @@ format(Source) -> format(Source, []).
|
|||
format(Source, Opts) -> jsx_to_json:format(Source, Opts).
|
||||
|
||||
|
||||
-spec to_term(Source::binary()) -> any().
|
||||
-spec to_term(Source::binary(), Opts::jsx_to_term:opts()) -> any().
|
||||
-spec to_term(Source::binary()) ->
|
||||
list({binary(), any()}).
|
||||
-spec to_term(Source::binary(), Opts::jsx_to_term:opts()) ->
|
||||
list({binary(), any()}).
|
||||
|
||||
|
||||
to_term(Source) -> to_term(Source, []).
|
||||
|
||||
|
@ -206,4 +209,4 @@ incremental_decode_loop({incomplete, More}, <<C:1/binary, Rest/binary>>) ->
|
|||
incremental_decode_loop(More(C), Rest).
|
||||
|
||||
|
||||
-endif.
|
||||
-endif.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue