Add an object_type discriminant to an OCF type.
object_type
Used to create output types that include the OCF object_type field for discriminated union support.
The base OCF type
The object_type literal string
type OcfIssuerOutput = WithObjectType<OcfIssuer, 'ISSUER'>;// equivalent to: OcfIssuer & { readonly object_type: 'ISSUER' } Copy
type OcfIssuerOutput = WithObjectType<OcfIssuer, 'ISSUER'>;// equivalent to: OcfIssuer & { readonly object_type: 'ISSUER' }
Add an
object_typediscriminant to an OCF type.Used to create output types that include the OCF
object_typefield for discriminated union support.