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.
- package/dist/inferred-types/index.cjs +8 -2
- package/dist/inferred-types/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/dictionary/keysOf.d.ts +1 -1
- package/dist/runtime/dictionary/keysOf.d.ts.map +1 -1
- package/dist/runtime/initializers/createFnWithProps.d.ts.map +1 -1
- package/dist/runtime/initializers/createFnWithProps.js +4 -2
- package/dist/runtime/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
3326
|
+
let fnWithProps = fn2;
|
|
3322
3327
|
for (let prop of keysOf(props)) {
|
|
3323
|
-
|
|
3328
|
+
let p = mutable(prop);
|
|
3329
|
+
fnWithProps[p] = props[p];
|
|
3324
3330
|
}
|
|
3325
3331
|
return isTrue(narrowing) ? fnWithProps : fnWithProps;
|
|
3326
3332
|
};
|