Open Cap Table Protocol Canton SDK - v0.2.224
    Preparing search index...

    Function getEntityTypeLabel

    • Get a human-readable label for an entity type with count.

      Parameters

      • type: OcfEntityType

        The OcfEntityType

      • count: number

        The count (determines singular vs plural)

      Returns string

      Human-readable string like "3 Stock Classes" or "1 Stakeholder"

      getEntityTypeLabel('stockClass', 1); // "1 Stock Class"
      getEntityTypeLabel('stockClass', 3); // "3 Stock Classes"
      getEntityTypeLabel('stakeholder', 0); // "0 Stakeholders"