@@ -68,7 +68,7 @@ export class ElementEndpoint<TEntity> extends ETagEndpointBase {
68
68
* @throws {@link NotFoundError }: {@link HttpStatusCode.NotFound} or {@link HttpStatusCode.Gone}
69
69
* @throws {@link HttpError }: Other non-success status code
70
70
*/
71
- async set ( entity : TEntity ) : Promise < ( TEntity | void ) > {
71
+ async set ( entity : TEntity ) : Promise < ( TEntity | undefined ) > {
72
72
const response = await this . putContent ( entity ) ;
73
73
const text = await response . text ( ) ;
74
74
if ( text ) {
@@ -94,7 +94,7 @@ export class ElementEndpoint<TEntity> extends ETagEndpointBase {
94
94
* @throws {@link NotFoundError }: {@link HttpStatusCode.NotFound} or {@link HttpStatusCode.Gone}
95
95
* @throws {@link HttpError }: Other non-success status code
96
96
*/
97
- async merge ( entity : TEntity ) : Promise < ( TEntity | void ) > {
97
+ async merge ( entity : TEntity ) : Promise < ( TEntity | undefined ) > {
98
98
this . responseCache = undefined ;
99
99
const response = await this . send ( HttpMethod . Patch , {
100
100
[ HttpHeader . ContentType ] : this . serializer . supportedMediaTypes [ 0 ]
@@ -118,7 +118,7 @@ export class ElementEndpoint<TEntity> extends ETagEndpointBase {
118
118
* @throws {@link NotFoundError }: {@link HttpStatusCode.NotFound} or {@link HttpStatusCode.Gone}
119
119
* @throws {@link HttpError }: Other non-success status code
120
120
*/
121
- async update ( updateAction : ( entity : TEntity ) => void , maxRetries : number = 3 ) : Promise < ( TEntity | void ) > {
121
+ async update ( updateAction : ( entity : TEntity ) => void , maxRetries : number = 3 ) : Promise < ( TEntity | undefined ) > {
122
122
let retryCounter = 0 ;
123
123
while ( true ) {
124
124
const entity = await this . read ( ) ;
0 commit comments