Skip to main content
Version: Next 🚧

[F] addFormatInfo

function addFormatInfo(
context,
type,
propertyType): void

Add format info onto an sdk type. Since the format decorator decorates the ModelProperty, we add the format info onto the property's internal type.

Parameters​

ParameterTypeDescription
contextTCGCContextsdk context
typeModelProperty | Scalarthe original typespec type. Used to grab the format decorator off of
propertyTypeSdkTypethe type of the property, i.e. the internal type that we add the format info onto

Returns​

void