@@ -1257,7 +1257,7 @@ fetch_type(Pid, BucketAndType, Key, Options) ->
12571257
12581258% % @doc Updates the convergent datatype in Riak with local
12591259% % modifications stored in the container type.
1260- -spec update_type (pid (), bucket_and_type (), Key :: binary (), Update :: riakc_datatype :update (term ())) ->
1260+ -spec update_type (pid (), bucket_and_type (), Key :: binary ()| 'undefined' , Update :: riakc_datatype :update (term ())) ->
12611261 ok | {ok , Key :: binary ()} | {ok , riakc_datatype :datatype ()} |
12621262 {ok , Key :: binary (), riakc_datatype :datatype ()} | {error , term ()}.
12631263update_type (Pid , BucketAndType , Key , Update ) ->
@@ -1266,7 +1266,7 @@ update_type(Pid, BucketAndType, Key, Update) ->
12661266% % @doc Updates the convergent datatype in Riak with local
12671267% % modifications stored in the container type, using the given request
12681268% % options.
1269- -spec update_type (pid (), bucket_and_type (), Key :: binary (),
1269+ -spec update_type (pid (), bucket_and_type (), Key :: binary ()| 'undefined' ,
12701270 Update :: riakc_datatype :update (term ()), [proplists :property ()]) ->
12711271 ok | {ok , Key :: binary ()} | {ok , riakc_datatype :datatype ()} |
12721272 {ok , Key :: binary (), riakc_datatype :datatype ()} | {error , term ()}.
0 commit comments