__accessSet? | boolean | - | - | SdkTypeBase.__accessSet |
__raw? | Type | - | - | SdkTypeBase.__raw |
access | AccessFlags | Whether the type has public or private accessibility. | - | - |
baseType? | SdkType | Type declared by the union’s extends clause. This constrains the variants but does not imply inheritance. Usage, access, and serialization information propagate to this referenced type. | - | - |
crossLanguageDefinitionId | string | Unique ID for the current type. | - | - |
decorators | DecoratorInfo[] | Client types sourced from TypeSpec decorated types will have this generic decoratores list. Only decorators in allowed list will be included in this list. Language’s emitter could set additionalDecorators in the option when createSdkContext to extend the allowed list. | - | SdkTypeBase.decorators |
deprecation? | string | Whether the type is deprecated. | - | SdkTypeBase.deprecation |
discriminatedOptions? | DiscriminatedOptions | Info to distinguish between different union variants. | - | - |
doc? | string | Document for the type. | - | SdkTypeBase.doc |
external? | ExternalTypeInfo | - | - | SdkTypeBase.external |
isExactName | boolean | Whether name should be used exactly as-is, without casing transformations. | - | - |
isGeneratedName | boolean | Whether name is created by TCGC. | - | - |
kind | "union" | - | SdkTypeBase.kind | - |
name | string | - | - | - |
namespace | string | Full qualified namespace. | - | - |
summary? | string | Summary for the type. | - | SdkTypeBase.summary |
usage | UsageFlags | Bitmap of the usage for the type. | - | - |
variants | Map<string | symbol, TValueType> | Maps variant keys to SDK types, in the same iteration order as variantTypes. Declared alternatives retain TypeSpec source order and their original string or symbol keys. String keys are declared names without casing transformations; symbols identify unnamed/default variants. Synthesized alternatives use new, unique symbol keys. Explicit null alternatives are excluded and represented by an SdkNullableType wrapper. Distinct keys may reference the same SDK type. | - | - |
variantTypes | TValueType[] | SDK types of the alternatives, in the same order as variants.values(). | - | - |