inferred-types 0.30.2 → 0.31.0

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/index.d.ts CHANGED
@@ -988,6 +988,13 @@ declare type Mapper<I = unknown, O = unknown, C extends FinalizedMapConfig<OptRe
988
988
  debug: boolean | string;
989
989
  inputType: I;
990
990
  outputType: O;
991
+ /**
992
+ * Provides the _type_ information for mapper function.
993
+ *
994
+ * Note: _this is just a **type**_ not the actual function which positioned
995
+ * at the root of the Mapper type
996
+ */
997
+ fnSignature: MapFn<I, O, C>;
991
998
  } & MapFn<I, O, C>;
992
999
  /**
993
1000
  * **MapInputFrom**
package/dist/index.js CHANGED
@@ -645,7 +645,8 @@ var mapper = (config) => (map) => {
645
645
  cardinality: config.cardinality,
646
646
  debug: config.debug,
647
647
  inputType: {},
648
- outputType: {}
648
+ outputType: {},
649
+ fnSignature: null
649
650
  });
650
651
  };
651
652
  var setMapper = (config = { input: void 0, output: void 0, cardinality: void 0 }, defaultValue) => ({
package/dist/index.mjs CHANGED
@@ -554,7 +554,8 @@ var mapper = (config) => (map) => {
554
554
  cardinality: config.cardinality,
555
555
  debug: config.debug,
556
556
  inputType: {},
557
- outputType: {}
557
+ outputType: {},
558
+ fnSignature: null
558
559
  });
559
560
  };
560
561
  var setMapper = (config = { input: void 0, output: void 0, cardinality: void 0 }, defaultValue) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inferred-types",
3
- "version": "0.30.2",
3
+ "version": "0.31.0",
4
4
  "description": "Functions which provide useful type inference on TS projects",
5
5
  "license": "MIT",
6
6
  "author": "Ken Snyder<ken@ken.net>",
@@ -388,6 +388,13 @@ export type Mapper<
388
388
  debug: boolean | string;
389
389
  inputType: I;
390
390
  outputType: O;
391
+ /**
392
+ * Provides the _type_ information for mapper function.
393
+ *
394
+ * Note: _this is just a **type**_ not the actual function which positioned
395
+ * at the root of the Mapper type
396
+ */
397
+ fnSignature: MapFn<I, O, C>;
391
398
  } & MapFn<I, O, C>;
392
399
 
393
400
  /**
@@ -118,6 +118,7 @@ const mapper =
118
118
  debug: config.debug,
119
119
  inputType: {} as I,
120
120
  outputType: {} as O,
121
+ fnSignature: null as unknown as MapFn<I, O, C>,
121
122
  });
122
123
  };
123
124