@milaboratories/pl-model-common 1.19.4 → 1.19.5
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/pl-model-common",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.5",
|
|
4
4
|
"description": "Platforma SDK Model",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"typescript": "~5.6.3",
|
|
27
27
|
"vite": "^6.3.5",
|
|
28
28
|
"vitest": "^2.1.9",
|
|
29
|
-
"@
|
|
30
|
-
"@
|
|
29
|
+
"@platforma-sdk/eslint-config": "1.0.3",
|
|
30
|
+
"@milaboratories/build-configs": "1.0.5"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"type-check": "tsc --noEmit --composite false",
|
|
@@ -204,6 +204,14 @@ export function isDataInfo<Blob>(value: unknown): value is DataInfo<Blob> {
|
|
|
204
204
|
* @param mapFn - Function to transform blobs from type B1 to type B2
|
|
205
205
|
* @returns A new DataInfo object with transformed blob references
|
|
206
206
|
*/
|
|
207
|
+
export function mapDataInfo<B1, B2>(
|
|
208
|
+
dataInfo: ParquetPartitionedDataInfo<B1>,
|
|
209
|
+
mapFn: (blob: B1) => B2,
|
|
210
|
+
): ParquetPartitionedDataInfo<B2>;
|
|
211
|
+
export function mapDataInfo<B1, B2>(
|
|
212
|
+
dataInfo: Exclude<DataInfo<B1>, ParquetPartitionedDataInfo<B1>>,
|
|
213
|
+
mapFn: (blob: B1) => B2,
|
|
214
|
+
): Exclude<DataInfo<B2>, ParquetPartitionedDataInfo<B2>>;
|
|
207
215
|
export function mapDataInfo<B1, B2>(
|
|
208
216
|
dataInfo: DataInfo<B1>,
|
|
209
217
|
mapFn: (blob: B1) => B2,
|