Skip to content

[F] getClientDefaultValue

function getClientDefaultValue(context, entity): string | boolean | Numeric | undefined;

Get the client-level default value for a model property.

ParameterTypeDescription
contextTCGCContextTCGCContext
entityModelPropertyModelProperty to check for clientDefaultValue decorator

string | boolean | Numeric | undefined

The client-level default value if decorator is applied, undefined otherwise.