Skip to main content
Version: Latest (0.60.x)

[F] getMaxLengthAsNumeric

function getMaxLengthAsNumeric(program, target): Numeric | undefined

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

Parameters

ParameterTypeDescription
programProgramCurrent program
targetTypeType with the @maxLength decorator

Returns

Numeric | undefined