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).
|
-ifndef(maps_support).
|
||||||
-type json_term() :: [{binary() | atom(), json_term()}] | [{},...]
|
-type json_term() :: [{binary() | atom(), json_term()}] | [{},...]
|
||||||
| [json_term()] | []
|
| [json_term()] | []
|
||||||
|
| {with_tail, json_term(), binary()}
|
||||||
| true | false | null
|
| true | false | null
|
||||||
| integer() | float()
|
| integer() | float()
|
||||||
| binary() | atom()
|
| binary() | atom()
|
||||||
|
@ -55,6 +56,7 @@
|
||||||
-ifdef(maps_support).
|
-ifdef(maps_support).
|
||||||
-type json_term() :: [{binary() | atom(), json_term()}] | [{},...]
|
-type json_term() :: [{binary() | atom(), json_term()}] | [{},...]
|
||||||
| [json_term()] | []
|
| [json_term()] | []
|
||||||
|
| {with_tail, json_term(), binary()}
|
||||||
| #{ binary() | atom() => json_term() }
|
| #{ binary() | atom() => json_term() }
|
||||||
| true | false | null
|
| true | false | null
|
||||||
| integer() | float()
|
| integer() | float()
|
||||||
|
|
|
@ -47,6 +47,7 @@
|
||||||
-ifndef(maps_support).
|
-ifndef(maps_support).
|
||||||
-type json_value() :: list(json_value())
|
-type json_value() :: list(json_value())
|
||||||
| list({binary() | atom(), json_value()}) | [{},...]
|
| list({binary() | atom(), json_value()}) | [{},...]
|
||||||
|
| {with_tail, json_value(), binary()}
|
||||||
| true
|
| true
|
||||||
| false
|
| false
|
||||||
| null
|
| null
|
||||||
|
@ -58,6 +59,7 @@
|
||||||
-ifdef(maps_support).
|
-ifdef(maps_support).
|
||||||
-type json_value() :: list(json_value())
|
-type json_value() :: list(json_value())
|
||||||
| list({binary() | atom(), json_value()}) | [{},...]
|
| list({binary() | atom(), json_value()}) | [{},...]
|
||||||
|
| {with_tail, json_value(), binary()}
|
||||||
| map()
|
| map()
|
||||||
| true
|
| true
|
||||||
| false
|
| false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue