more type fixes
This commit is contained in:
parent
6120455a22
commit
b016087ceb
2 changed files with 3 additions and 3 deletions
|
@ -80,7 +80,7 @@
|
||||||
|
|
||||||
-type encoder_opts() :: [encoder_opt()].
|
-type encoder_opts() :: [encoder_opt()].
|
||||||
-type encoder_opt() :: {strict, true | false}
|
-type encoder_opt() :: {strict, true | false}
|
||||||
| {encoding, auto | supported_utf()}
|
| {encoding, supported_utf()}
|
||||||
| {space, integer()}
|
| {space, integer()}
|
||||||
| space
|
| space
|
||||||
| {indent, integer()}
|
| {indent, integer()}
|
||||||
|
|
|
@ -77,8 +77,8 @@ term_to_json(JSON, Opts) ->
|
||||||
jsx_eep0018:term_to_json(JSON, Opts).
|
jsx_eep0018:term_to_json(JSON, Opts).
|
||||||
|
|
||||||
|
|
||||||
-spec json_to_term(JSON::binary()) -> json().
|
-spec json_to_term(JSON::binary()) -> eep0018().
|
||||||
-spec json_to_term(JSON::binary(), Opts::decoder_opts()) -> json().
|
-spec json_to_term(JSON::binary(), Opts::decoder_opts()) -> eep0018().
|
||||||
|
|
||||||
json_to_term(JSON) ->
|
json_to_term(JSON) ->
|
||||||
json_to_term(JSON, []).
|
json_to_term(JSON, []).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue