@@ -1225,7 +1225,7 @@ fetch_type(Pid, BucketAndType, Key, Options) ->
12251225
12261226% % @doc Updates the convergent datatype in Riak with local
12271227% % modifications stored in the container type.
1228- -spec update_type (pid (), bucket_and_type (), Key :: binary (), Update :: riakc_datatype :update (term ())) ->
1228+ -spec update_type (pid (), bucket_and_type (), Key :: binary ()| 'undefined' , Update :: riakc_datatype :update (term ())) ->
12291229 ok | {ok , Key :: binary ()} | {ok , riakc_datatype :datatype ()} |
12301230 {ok , Key :: binary (), riakc_datatype :datatype ()} | {error , term ()}.
12311231update_type (Pid , BucketAndType , Key , Update ) ->
@@ -1234,7 +1234,7 @@ update_type(Pid, BucketAndType, Key, Update) ->
12341234% % @doc Updates the convergent datatype in Riak with local
12351235% % modifications stored in the container type, using the given request
12361236% % options.
1237- -spec update_type (pid (), bucket_and_type (), Key :: binary (),
1237+ -spec update_type (pid (), bucket_and_type (), Key :: binary ()| 'undefined' ,
12381238 Update :: riakc_datatype :update (term ()), [proplists :property ()]) ->
12391239 ok | {ok , Key :: binary ()} | {ok , riakc_datatype :datatype ()} |
12401240 {ok , Key :: binary (), riakc_datatype :datatype ()} | {error , term ()}.
0 commit comments