Merge pull request #137 from getkimball/dialyze-with-tail
Add `with_tail` to `decode` spec
This commit is contained in:
commit
1bbe8986c7
2 changed files with 4 additions and 0 deletions
|
@ -46,6 +46,7 @@
|
|||
-ifndef(maps_support).
|
||||
-type json_term() :: [{binary() | atom(), json_term()}] | [{},...]
|
||||
| [json_term()] | []
|
||||
| {with_tail, json_term(), binary()}
|
||||
| true | false | null
|
||||
| integer() | float()
|
||||
| binary() | atom()
|
||||
|
@ -55,6 +56,7 @@
|
|||
-ifdef(maps_support).
|
||||
-type json_term() :: [{binary() | atom(), json_term()}] | [{},...]
|
||||
| [json_term()] | []
|
||||
| {with_tail, json_term(), binary()}
|
||||
| #{ binary() | atom() => json_term() }
|
||||
| true | false | null
|
||||
| integer() | float()
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
-ifndef(maps_support).
|
||||
-type json_value() :: list(json_value())
|
||||
| list({binary() | atom(), json_value()}) | [{},...]
|
||||
| {with_tail, json_value(), binary()}
|
||||
| true
|
||||
| false
|
||||
| null
|
||||
|
@ -58,6 +59,7 @@
|
|||
-ifdef(maps_support).
|
||||
-type json_value() :: list(json_value())
|
||||
| list({binary() | atom(), json_value()}) | [{},...]
|
||||
| {with_tail, json_value(), binary()}
|
||||
| map()
|
||||
| true
|
||||
| false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue