[F] getAlternateType
function getAlternateType(context, source): | Type | ExternalTypeInfo | undefined;Get the alternate type for a source type in a specific scope.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
context | TCGCContext | the Sdk Context |
source | Enum | Model | ModelProperty | Scalar | Union | source type to be replaced |
Returns
Section titled “Returns”| Type
| ExternalTypeInfo
| undefined
alternate type to replace the source type, or undefined if no alternate type is found