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.
@@ -8,5 +8,5 @@ import type { Container, Keys } from "../../types/index";
8
8
  * `readonly ["value"]` as the keys array when detected rather than reporting
9
9
  * on props like `__v_isRef`, etc.
10
10
  */
11
- export declare function keysOf<TContainer extends Container>(container: TContainer): Keys<TContainer> & readonly (keyof TContainer)[];
11
+ export declare function keysOf<TContainer extends Container>(container: TContainer): Keys<TContainer> & (keyof TContainer)[];
12
12
  //# sourceMappingURL=keysOf.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"keysOf.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/keysOf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,0BAAwB;AAIvD;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAAC,UAAU,SAAS,SAAS,EACjD,SAAS,EAAE,UAAU,GAYN,IAAI,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,MAAM,UAAU,CAAC,EAAE,CAChE"}
1
+ {"version":3,"file":"keysOf.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/keysOf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,0BAAwB;AAIvD;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAAC,UAAU,SAAS,SAAS,EACjD,SAAS,EAAE,UAAU,GAYN,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,UAAU,CAAC,EAAE,CACvD"}
@@ -1 +1 @@
1
- {"version":3,"file":"createFnWithProps.d.ts","sourceRoot":"","sources":["../../../src/runtime/initializers/createFnWithProps.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,MAAM,EACN,UAAU,EACV,SAAS,EACV,0BAAwB;AAKzB;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAC5B,KAAK,SAAS,SAAS,OAAO,EAAE,EAChC,OAAO,SAAS,UAAU,EAC1B,CAAC,SAAS,UAAU,EACpB,MAAM,SAAS,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,EACnC,UAAU,SAAS,OAAO,cAEtB,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,SACxB,MAAM,cACF,UAAU,KAYhB,EAAE,CACL,MAAM,CAAC,UAAU,CAAC,EAClB,CAAC,CAAC,CAAe,SAAL,KAAK,EAAE,GAAG,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,GAAG,MAAM,EACnD,CAAC,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,CAAC,GAAG,MAAM,CAEzC,CAAA"}
1
+ {"version":3,"file":"createFnWithProps.d.ts","sourceRoot":"","sources":["../../../src/runtime/initializers/createFnWithProps.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,MAAM,EACN,UAAU,EACV,SAAS,EACV,0BAAwB;AAIzB;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAC5B,KAAK,SAAS,SAAS,OAAO,EAAE,EAChC,OAAO,SAAS,UAAU,EAC1B,CAAC,SAAS,UAAU,EACpB,MAAM,SAAS,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,EACnC,UAAU,SAAS,OAAO,cAEtB,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,SACxB,MAAM,cACF,UAAU,KAWhB,EAAE,CACL,MAAM,CAAC,UAAU,CAAC,EAClB,CAAC,CAAC,CAAe,SAAL,KAAK,EAAE,GAAG,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,GAAG,MAAM,EACnD,CAAC,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,CAAC,GAAG,MAAM,CAEzC,CAAA"}
@@ -1,5 +1,4 @@
1
- import { isTrue, keysOf } from "../index.js";
2
- import { mutable } from "../type-conversion/mutable.js";
1
+ import { isTrue } from "../index.js";
3
2
  /**
4
3
  * **createFnWithProps**`(fn, props)`
5
4
  *
@@ -7,9 +6,8 @@ import { mutable } from "../type-conversion/mutable.js";
7
6
  */
8
7
  export const createFnWithProps = (fn, props, narrowing = false) => {
9
8
  let fnWithProps = fn;
10
- for (let prop of keysOf(props)) {
11
- let p = mutable(prop);
12
- fnWithProps[p] = props[p];
9
+ for (let prop of Object.keys(props)) {
10
+ fnWithProps[prop] = props[prop];
13
11
  }
14
12
  return (isTrue(narrowing)
15
13
  ? fnWithProps