• Decorator to specify a type (constructor) for an attribute within a class's metadata. This allows the intended type of an attribute to be known at runtime, making it a valid drop target in the editor.

    Note: Attributes with a specified meta-type will always be included in the base-mutator (via Mutable.getMutator), regardless of their own type. Non-mutable objects will be displayed via their toString method in the editor.

    Type Parameters

    • T
    • C extends (new (...args) => T)

    Parameters

    • _constructor: C

    Returns ((_value, _context) => void)

    Author

    Jonas Plotzky, HFU, 2024-2025

  • Type Parameters

    • T extends String | Number | Boolean

    Parameters

    • _constructor: (new (...args) => T)
        • new (...args): T
        • Parameters

          • Rest ...args: any[]

          Returns T

    Returns ((_value, _context) => void)

  • Type Parameters

    • T
    • E extends Record<keyof E, T>

    Parameters

    • _enum: E

    Returns ((_value, _context) => void)