import { objectSize } from '../forObjects/objectSize' ; const errorSize = function < TError extends Error > ( value ) : number { const errorButWithoutTheShittiness = { ... value , message : value . message } ; return objectSize ( errorButWithoutTheShittiness ) ; } ; export { errorSize } ;