Skip to content

Commit

Permalink
Add map typespec for dialyzer
Browse files Browse the repository at this point in the history
This obviously only exists on VMs that support it.
  • Loading branch information
davisp committed Jul 17, 2015
1 parent f284a1b commit e132b63
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/jiffy.erl
Expand Up @@ -23,6 +23,10 @@
-type json_number() :: integer() | float().
-type json_object() :: {[{json_string(),json_value()}]}.

-ifndef(JIFFY_NO_MAPS).
-type #{json_string() => json_value()}.
-endif.

-type jiffy_decode_result() :: json_value()
| {has_trailer, json_value(), binary()}.

Expand Down

0 comments on commit e132b63

Please sign in to comment.