@metreeca/blue - v0.10.0
    Preparing search index...

    Function type

    • Creates a marker for the resource type property.

      Tags the enclosing property as mapping to JSON-LD @type. At most one type marker is allowed per resource shape, counted after inheritance merging: markers sharing a property name collapse into a single entry, so a marker reaching the shape through several parents or redeclared by the shape counts once, while two type markers under distinct property names are rejected. The resulting property has implicit 0..1 cardinality and is system-managed: its value is derived from the class constraint and client-supplied values are silently ignored.

      Parameters

      • constraints: { hidden?: boolean } = {}

        The type property constraints

        • Optional Readonlyhidden?: boolean

          Excludes the property from default serialisation

      Returns Type

      An immutable Type marker for the resource type property