File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646 jsx | jiffy |
4747 {allow_atom , none |pack } |
4848 {enable_str , boolean ()} |
49- {ext , {msgpack_ext_packer (),msgpack_ext_unpacker ()}}
49+ {ext , {msgpack_ext_packer (),msgpack_ext_unpacker ()} | module () }
5050 ].
5151
5252-record (options_v1 , {
6363 impl = erlang :: erlang | nif ,
6464 allow_atom = none :: none | pack , % % allows atom when packing
6565 enable_str = false :: boolean (), % % true for new spec
66- ext_packer = undefined :: undefined | msgpack_ext_packer (),
67- ext_unpacker = undefined :: msgpack_ext_unpacker (),
66+ ext_packer = undefined :: msgpack_ext_packer () | undefined ,
67+ ext_unpacker = undefined :: msgpack_ext_unpacker () | undefined ,
6868 original_list = [] :: msgpack_list_options ()
6969 }).
7070
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ pack_string(String, _Opt) ->
195195 end
196196 end .
197197
198- -spec pack_array ([msgpack :object ()], list ()) -> binary () | no_return ().
198+ -spec pack_array ([msgpack :object ()], msgpack_option ()) -> binary () | no_return ().
199199pack_array ([], _ ) ->
200200 << 2#1001 :4 , 0 :4 /integer -unit :1 >>;
201201
You can’t perform that action at this time.
0 commit comments