Browse Source

Add map typespec for dialyzer

This obviously only exists on VMs that support it.
pull/98/head
Paul J. Davis 9 years ago
parent
commit
e132b633f5
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/jiffy.erl

+ 4
- 0
src/jiffy.erl View File

@ -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()}.

Loading…
Cancel
Save