Fundamentals
    Preparing search index...

    Function typeKeyOf

    • Gets the key a type carries, whether it declares the key or inherits it from a base type.

      This is what makes a concept recognizable across copies: the key is a static, and a static is inherited through the constructor's prototype chain, so every type deriving from ConceptAs reports ConceptAs without anything having to compare class objects.

      Parameters

      • type: Constructor | undefined

        The type to read the key from.

      Returns string | undefined

      The key carried, or undefined when the type carries none.