Fixed implicit throw annotation.

This commit is contained in:
flash 2024-04-23 21:49:15 +00:00
parent d4440e03cc
commit c94cba560d

View file

@ -28,8 +28,8 @@ const MamiArgs = (argName, input, builder) => {
filter: undefined,
constraint: undefined,
fallback: undefined,
throw: true,
required: false,
throw: undefined,
required: undefined,
min: undefined,
max: undefined,
};
@ -79,6 +79,10 @@ const MamiArgs = (argName, input, builder) => {
required: value => {
checkCreated();
info.required = value === undefined || value === true;
if(info.required && info.throw === undefined)
info.throw = true;
return blueprint;
},
min: value => {