export function handleError(err:any,...a:any[]):any{console.error(err);return{error:String(err)}} export default{handleError};