Skip to content

[F] getAlternateType

function getAlternateType(context, source):
| Type
| ExternalTypeInfo
| undefined;

Get the alternate type for a source type in a specific scope.

ParameterTypeDescription
contextTCGCContextthe Sdk Context
sourceEnum | Model | ModelProperty | Scalar | Unionsource type to be replaced

| Type | ExternalTypeInfo | undefined

alternate type to replace the source type, or undefined if no alternate type is found