inferred-types 0.30.3 → 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 +7 -0
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
- package/src/types/dictionary/MapTo.ts +7 -0
- package/src/utility/dictionary/mapTo.ts +1 -0
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
|
@@ -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
|
/**
|