Interface Union<Objects>

A union is a collection of objects that are combined into a single object.
When returned by a function or method, it is to be handled as a single object.

Type Parameters

Hierarchy

Implemented by

Properties

Methods

Properties

objectType: "union"

The type of the union.

objects: Objects

The objects that make up the union.

virtual: false

Whether this object is virtual.

Methods

  • Whether this object is equal to another object.
    If the objects are of a different type, this method should return false.
    If the objects are of the same type, this method should return true if the objects are equal, and false if they are not.

    Parameters

    Returns boolean

Generated using TypeDoc