@@ -351,8 +351,8 @@ export class APIService implements APIServiceClient {
351351 const load = { method, endpoint, param, body, context } ;
352352 return this . target
353353 . doProxy ( method , host , path , param , body , context , hash )
354- . then ( ( data : any ) => ( { index, load, data, error : null } ) )
355- . catch ( ( error : any ) => ( { index, load, data : null , error } ) )
354+ . then ( ( data : any ) => ( { index, load, data, error : null as any } ) )
355+ . catch ( ( error : any ) => ( { index, load, data : null as any , error } ) )
356356 . then ( ( { index, load, data, error } ) => {
357357 const baseDir = ( ( ) => {
358358 // eslint-disable-next-line prettier/prettier
@@ -402,8 +402,8 @@ export class APIService implements APIServiceClient {
402402 throw new Error ( `@method is not valid. method:${ method } ` ) ;
403403 } ;
404404 return call ( method )
405- . then ( ( data : any ) => ( { index, load, data, error : null } ) )
406- . catch ( ( error : any ) => ( { index, load, data : null , error } ) )
405+ . then ( ( data : any ) => ( { index, load, data, error : null as any } ) )
406+ . catch ( ( error : any ) => ( { index, load, data : null as any , error } ) )
407407 . then ( ( { index, load, data, error } ) => {
408408 const baseDir = ( ( ) => {
409409 // eslint-disable-next-line prettier/prettier
0 commit comments