properly export config type

This commit is contained in:
alisdair sullivan 2014-02-10 06:39:15 +00:00
parent 1049d69f3e
commit e1599574ff
3 changed files with 18 additions and 16 deletions

View file

@ -31,6 +31,7 @@
-export_type([json_term/0, json_text/0, token/0]).
-export_type([encoder/0, decoder/0, parser/0, internal_state/0]).
-export_type([config/0]).
-ifdef(TEST).
@ -53,6 +54,8 @@
-type json_text() :: binary().
-type config() :: jsx_config:config().
-spec encode(Source::json_term()) -> json_text() | {incomplete, encoder()}.
-spec encode(Source::json_term(), Config::jsx_to_json:config()) -> json_text() | {incomplete, encoder()}.