Skip to main content
Version: Next

defineProperty()

function defineProperty<T>(tag, type?): Property<T>

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

Type Parameters

Type Parameter
T

Parameters

ParameterTypeDescription
tagInstanceOrTagthe property tag
type?Class<T>type the property holds values of

Returns

Property<T>

newly defined property