inferred-types 0.48.7 → 0.48.9
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 +2 -8
- 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 +3 -5
- package/dist/runtime/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -3316,17 +3316,11 @@ 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
|
-
|
|
3324
3319
|
// src/runtime/initializers/createFnWithProps.ts
|
|
3325
3320
|
var createFnWithProps = (fn2, props, narrowing = false) => {
|
|
3326
3321
|
let fnWithProps = fn2;
|
|
3327
|
-
for (let prop of
|
|
3328
|
-
|
|
3329
|
-
fnWithProps[p] = props[p];
|
|
3322
|
+
for (let prop of Object.keys(props)) {
|
|
3323
|
+
fnWithProps[prop] = props[prop];
|
|
3330
3324
|
}
|
|
3331
3325
|
return isTrue(narrowing) ? fnWithProps : fnWithProps;
|
|
3332
3326
|
};
|