Merge pull request #57 from yjh0502/develop
Fix dialyzer with maps_support
This commit is contained in:
commit
4df8e5092a
1 changed files with 11 additions and 0 deletions
11
src/jsx.erl
11
src/jsx.erl
|
@ -41,11 +41,22 @@
|
|||
-endif.
|
||||
|
||||
|
||||
-ifndef(maps_support).
|
||||
-type json_term() :: [{binary() | atom(), json_term()}] | [{}]
|
||||
| [json_term()] | []
|
||||
| true | false | null
|
||||
| integer() | float()
|
||||
| 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().
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue