From f80903b3f5ec174bf02b3abecd2a1fcc13dc9f88 Mon Sep 17 00:00:00 2001 From: "Paulo F. Oliveira" Date: Fri, 9 Feb 2018 23:59:30 +0000 Subject: [PATCH] Update -spec(). for proper module readibility Handle "Invalid type specification" --- src/jsx_consult.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jsx_consult.erl b/src/jsx_consult.erl index 2b0f1da..b1a4424 100644 --- a/src/jsx_consult.erl +++ b/src/jsx_consult.erl @@ -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)}.