Fix dialyzer with maps_support
This commit is contained in:
parent
8845c9acbe
commit
80d883e1d4
1 changed files with 11 additions and 0 deletions
11
src/jsx.erl
11
src/jsx.erl
|
@ -41,11 +41,22 @@
|
||||||
-endif.
|
-endif.
|
||||||
|
|
||||||
|
|
||||||
|
-ifndef(maps_support).
|
||||||
-type json_term() :: [{binary() | atom(), json_term()}] | [{}]
|
-type json_term() :: [{binary() | atom(), json_term()}] | [{}]
|
||||||
| [json_term()] | []
|
| [json_term()] | []
|
||||||
| true | false | null
|
| true | false | null
|
||||||
| integer() | float()
|
| integer() | float()
|
||||||
| binary() | atom().
|
| binary() | atom().
|
||||||
|
-endif.
|
||||||
|
|
||||||
|
-ifdef(maps_support).
|
||||||
|
-type json_term() :: [{binary() | atom(), json_term()}] | [{}]
|
||||||
|
| [json_term()] | []
|
||||||
|
| map()
|
||||||
|
| true | false | null
|
||||||
|
| integer() | float()
|
||||||
|
| binary() | atom().
|
||||||
|
-endif.
|
||||||
|
|
||||||
-type json_text() :: binary().
|
-type json_text() :: binary().
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue