@forgeax/engine-pack 0.1.33 → 0.1.34

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.
@@ -249,8 +249,8 @@ function vectorLength(type) {
249
249
  }
250
250
  function parameterValueError(parameter, value, propertyPath) {
251
251
  const { type } = parameter;
252
- if (type === "bool" && typeof value !== "boolean") {
253
- return parameterFailure(propertyPath, "a boolean", value, "bool value has the wrong type");
252
+ if (type === "bool") {
253
+ return typeof value === "boolean" ? void 0 : parameterFailure(propertyPath, "a boolean", value, "bool value has the wrong type");
254
254
  }
255
255
  if (numericType(type)) {
256
256
  if (typeof value !== "number" || !Number.isFinite(value)) {
@@ -311,8 +311,8 @@ function parameterValueError(parameter, value, propertyPath) {
311
311
  }
312
312
  return void 0;
313
313
  }
314
- if (type === "string" && typeof value !== "string") {
315
- return parameterFailure(propertyPath, "a string", value, "string parameter has the wrong type");
314
+ if (type === "string") {
315
+ return typeof value === "string" ? void 0 : parameterFailure(propertyPath, "a string", value, "string parameter has the wrong type");
316
316
  }
317
317
  if (type === "enum") {
318
318
  if (typeof value !== "string") {