• Transforms any Error or Event into a plain object with all of their enumerable properties, and some of their non-enumerable properties attached.

    Type Parameters

    • V

    Parameters

    • value: V

      Initial source that we have to transform in order for it to be usable by the serializer

    Returns {
        currentTarget: string;
        detail?: unknown;
        target: string;
        type: string;
        [ownProps: string]: unknown;
    } | {
        message: string;
        name: string;
        stack?: string;
        [ownProps: string]: unknown;
    } | V

    An Event or Error turned into an object - or the value argurment itself, when value is neither an Event nor an Error.

Generated using TypeDoc