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

    Function assertOcfIssuer

    • Assert that a value is of a specific OCF type, throwing if not.

      Parameters

      • value: unknown
      • Optionalmessage: string

      Returns asserts value is OcfIssuer

        const issuer = assertOcfIssuer(data); // Throws if not an OcfIssuer
      console.log(issuer.legal_name); // TypeScript knows this is valid