Thrown if multiple dependencies crash.

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

[inspect]: ((depth: number, inspectionOptions?: {
    colors?: boolean;
}) => unknown) = ...

Type declaration

    • (depth, inspectionOptions?): unknown
    • Node.js-style object inspection.

      Node's default inspection only prevents two levels of depth which may hide critical information. It's also considerably more verbose than native matter.js formatting. We therefore offer this custom implementation.

      Note that this conforms to Node's API but is not dependent on Node.

      Parameters

      • depth: number
      • OptionalinspectionOptions: {
            colors?: boolean;
        }
        • Optionalcolors?: boolean

      Returns unknown

format: ((format?: "plain" | "ansi" | "html", indents?: number) => string) = MatterError.prototype.format

Type declaration

    • (format?, indents?): string
    • Convert the error to formatted text.

      Matter encodes errors with modern JS features including Error#cause and AggregateError#errors subfields. You can use this function to ensure all error details are presented regardless of environment.

      Parameters

      • format: "plain" | "ansi" | "html" = "plain"
      • indents: number = 0

      Returns string

Methods