Hierarchy

Constructors

Properties

Methods

  • Removes any magical properties on this object

    Returns

    the number of magical properties removed

    Returns number

  • Returns

    the number of magical properties on this object

    Returns number

  • Returns

    a magical property on this object, if it exists

    Type Parameters

    Parameters

    • type: T

    Returns undefined | number

  • Returns

    a magical sub-property on this object, if it exists

    Type Parameters

    Parameters

    Returns undefined | number

  • Parameters

    Returns undefined | number

  • Returns

    a magical property on this object, if it exists

    Type Parameters

    Parameters

    • type: T

    Returns undefined | number

  • Returns

    a magical sub-property on this object, if it exists

    Type Parameters

    Parameters

    Returns undefined | number

  • Parameters

    Returns undefined | number

  • Returns

    if this object has any magical properties

    Returns boolean

  • Returns

    if this object has any of the given magical property types

    Parameters

    Returns boolean

  • Returns string

  • Removes any magical properties on this object and replaces them with magical properties on the given object

    Parameters

    Returns default

  • Removes a magical property on this object, if it exists

    Returns

    whether the magical property was removed — ie, if it existed

    Parameters

    Returns boolean

  • Removes a magical sub-property on this object, if it exists. If all sub-properties are removed, the super-property is too.

    Returns

    whether the magical sub-property was removed — ie, if it existed

    Type Parameters

    Parameters

    Returns boolean

  • Parameters

    • inert: boolean = true

    Returns default

  • Returns

    a list of all the magical sub-properties for the given type on this object, if any

    Type Parameters

    Parameters

    • type: T

    Returns readonly {
        type: MagicalPropertyTypeSubTypeMap[T];
        value: number;
    }[]

  • Returns

    a list of all the magical sub-property types of the given supertype on this object

    Returns readonly MagicalSubPropertyTypesResult[]

  • Returns

    a list of all the magical sub-property types of the given supertype on this object

    Type Parameters

    Parameters

    • type: T

    Returns readonly MagicalPropertyTypeSubTypeMap[T][]

Generated using TypeDoc