method BaseError.prototype.toJSON
BaseError.prototype.toJSON(): Record<string, unknown>

Returns a JSON-serializable representation of the error

Return Type

Record<string, unknown>

Usage

import { BaseError } from ".";