@forgeax/engine-pack 0.1.33 → 0.1.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7443,8 +7443,8 @@ function vectorLength(type) {
7443
7443
  }
7444
7444
  function parameterValueError(parameter, value, propertyPath) {
7445
7445
  const { type } = parameter;
7446
- if (type === "bool" && typeof value !== "boolean") {
7447
- return parameterFailure(propertyPath, "a boolean", value, "bool value has the wrong type");
7446
+ if (type === "bool") {
7447
+ return typeof value === "boolean" ? void 0 : parameterFailure(propertyPath, "a boolean", value, "bool value has the wrong type");
7448
7448
  }
7449
7449
  if (numericType(type)) {
7450
7450
  if (typeof value !== "number" || !Number.isFinite(value)) {
@@ -7505,8 +7505,8 @@ function parameterValueError(parameter, value, propertyPath) {
7505
7505
  }
7506
7506
  return void 0;
7507
7507
  }
7508
- if (type === "string" && typeof value !== "string") {
7509
- return parameterFailure(propertyPath, "a string", value, "string parameter has the wrong type");
7508
+ if (type === "string") {
7509
+ return typeof value === "string" ? void 0 : parameterFailure(propertyPath, "a string", value, "string parameter has the wrong type");
7510
7510
  }
7511
7511
  if (type === "enum") {
7512
7512
  if (typeof value !== "string") {