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

    Type Alias WithObjectType<T, OT>

    WithObjectType: T & { object_type: OT }

    Add an object_type discriminant to an OCF type.

    Used to create output types that include the OCF object_type field for discriminated union support.

    Type Parameters

    • T

      The base OCF type

    • OT extends string

      The object_type literal string

    type OcfIssuerOutput = WithObjectType<OcfIssuer, 'ISSUER'>;
    // equivalent to: OcfIssuer & { readonly object_type: 'ISSUER' }