Merge pull request #137 from getkimball/dialyze-with-tail

Add `with_tail` to `decode` spec
This commit is contained in:
alisdair sullivan 2020-06-25 14:55:49 -07:00 committed by GitHub
commit 1bbe8986c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

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

View file

@ -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