Skip to main content
Version: Next

Entry

The entry of a brick is a static object linked to the brick class itself that is used to make the link between the code and the database. It stores tags linked to a specific brick :

  • tag of the brick itself
  • tags of properties that can be used as constants.
@deprecated

Hierarchy

Index

Methods

addProperty

  • addProperty<T>(tag: string): Property<T>
  • Register a property on the brick with the specified tag.

    @deprecated

    use defineProperty instead


    Type parameters

    • T

    Parameters

    • tag: string

    Returns Property<T>

    the property descriptor

addRelation

  • Register a new relation type with the specified tag and direction

    @deprecated

    use defineRelation instead


    Parameters

    Returns Related<any, any>

getTag

  • getTag(): string

  • Returns string

    tag of this instance