Skip to content

[F] getMaxContains

function getMaxContains(program, target): number | undefined;

Used in conjunction with the @contains decorator, specifies that the array must contain at most a certain number of the types provided by the @contains decorator.

ParameterType
programProgram
targetType

number | undefined