Skip to content

[F] getMinLengthAsNumeric

function getMinLengthAsNumeric(program, target): Numeric | undefined

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

Parameters

ParameterTypeDescription
programProgramCurrent program
targetTypeType with the @minLength decorator

Returns

Numeric | undefined