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

    Function type

    • Creates the member typing a resource.

      Marks the member it is declared under as carrying the resource's class, mapping it to the JSON-LD @type keyword. The value is derived from the class the shape states, so the member is active only on a shape stating one and a shape stating none rejects every value supplied for it: a shared supershape may thus declare the member once for the shapes extending it, each activating it by stating a class of its own. A shape states at most one, counted as id is.

      Parameters

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

        Optional member constraints

        • Optional Readonlyhidden?: boolean

          Excludes the member from default serialisation

      Returns Type

      An immutable member typing the resource