Skip to content

[F] getAlternateType

function getAlternateType(context, source): Scalar | undefined

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

Parameters

ParameterTypeDescription
contextTCGCContextthe Sdk Context
sourceModelProperty | Scalarsource type to be replaced

Returns

Scalar | undefined

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