Skip to content

[F] getAlternateType

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

the Sdk Context

source type to be replaced

function getAlternateType(context, source): Scalar | undefined;
ParameterType
contextTCGCContext
sourceModelProperty | Scalar

Scalar | undefined

function getAlternateType(context, source): ExternalTypeInfo | undefined;
ParameterType
contextTCGCContext
sourceEnum | Model | ModelProperty | Scalar | Union

ExternalTypeInfo | undefined