Skip to content

[F] getMaxLengthAsNumeric

function getMaxLengthAsNumeric(program, target): undefined | Numeric

Get the minimum length of a string type as a Numeric value.

Parameters

ParameterTypeDescription
programProgramCurrent program
targetTypeType with the @maxLength decorator

Returns

undefined | Numeric