inferred-types 0.48.6 → 0.48.8

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.
@@ -3316,11 +3316,17 @@ var addFnToProps = (props, _clone_fn) => (fn2) => {
3316
3316
  return localFn;
3317
3317
  };
3318
3318
 
3319
+ // src/runtime/type-conversion/mutable.ts
3320
+ function mutable(value) {
3321
+ return value;
3322
+ }
3323
+
3319
3324
  // src/runtime/initializers/createFnWithProps.ts
3320
3325
  var createFnWithProps = (fn2, props, narrowing = false) => {
3321
- const fnWithProps = fn2;
3326
+ let fnWithProps = fn2;
3322
3327
  for (let prop of keysOf(props)) {
3323
- fnWithProps[prop] = props[prop];
3328
+ let p = mutable(prop);
3329
+ fnWithProps[p] = props[p];
3324
3330
  }
3325
3331
  return isTrue(narrowing) ? fnWithProps : fnWithProps;
3326
3332
  };