Skip to main content
Version: 2.0

defineProperty

Callable


  • Create a constant property object which has the specified tag and type to be used in coded bricks.


    Type parameters

    • T

    Parameters

    • tag: Tag

      the property tag

    • optionaltype: Class<T>

      type the property holds values of

    Returns Property<T>

    newly defined property