Merge pull request #118 from paulo-ferraz-oliveira/fix/dialyzer_issues
Fix dialyzer issues
This commit is contained in:
commit
c590b1f51f
2 changed files with 3 additions and 3 deletions
|
@ -80,7 +80,7 @@ consult(File, Config) when is_list(Config) ->
|
|||
end.
|
||||
|
||||
|
||||
-type state() :: {list(), #config{}}.
|
||||
-type state() :: {[], proplists:proplist(), {list(), #config{}}}.
|
||||
-spec init(Config::proplists:proplist()) -> state().
|
||||
|
||||
init(Config) -> {[], Config, jsx_to_term:start_term(Config)}.
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
-export([init/1, handle_event/2]).
|
||||
|
||||
|
||||
-spec is_json(Source::binary(), Config::jsx_config:config()) -> true | false | {incomplete, jsx:decoder()}.
|
||||
-spec is_json(Source::binary(), Config::proplists:proplist()) -> true | false | {incomplete, jsx:decoder()}.
|
||||
|
||||
is_json(Source, Config) when is_list(Config) ->
|
||||
try (jsx:decoder(?MODULE, Config, jsx_config:extract_config(Config)))(Source)
|
||||
|
@ -35,7 +35,7 @@ is_json(Source, Config) when is_list(Config) ->
|
|||
end.
|
||||
|
||||
|
||||
-spec is_term(Source::any(), Config::jsx_config:config()) -> true | false | {incomplete, jsx:encoder()}.
|
||||
-spec is_term(Source::any(), Config::proplists:proplist()) -> true | false | {incomplete, jsx:encoder()}.
|
||||
|
||||
is_term(Source, Config) when is_list(Config) ->
|
||||
try (jsx:encoder(?MODULE, Config, jsx_config:extract_config(Config)))(Source)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue