minor fixups to spec/api
This commit is contained in:
parent
6c3aee2835
commit
affdd3cc62
2 changed files with 3 additions and 7 deletions
|
@ -78,12 +78,11 @@
|
|||
%% this probably doesn't work properly
|
||||
-type jsx_decoder() :: fun((binary()) -> jsx_iterator_result()).
|
||||
|
||||
|
||||
|
||||
-type jsx_encoder() :: fun((jsx_encodeable()) -> jsx_iterator_result()).
|
||||
|
||||
-type jsx_iterator_result() ::
|
||||
{jsx, jsx_event(), fun(() -> jsx_iterator_result())}
|
||||
| {jsx, [jsx_event()], fun(() -> jsx_iterator_result())}
|
||||
| {jsx, incomplete, jsx_iterator()}
|
||||
| {error, {badjson, any()}}.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue