Fundamentals
    Preparing search index...

    Function declaredTypeKey

    • Gets the key a type declares itself, ignoring any inherited from a base type.

      Converter lookup uses this, because a key is inherited: a consumer's class CustomerId extends ConceptAs<string> reports ConceptAs, and registering a converter under that would take the place of concept handling for every concept in the application.

      Parameters

      • type: Constructor | undefined

        The type to read the key from.

      Returns string | undefined

      The declared key, or undefined when the type declares none.