Comparing version 1.12.2 to 1.12.3
@@ -1,2 +0,2 @@ | ||
import { SCHEMA_OPTIONS_SYMBOL, SchemaOptions } from './morphism'; | ||
import { SCHEMA_OPTIONS_SYMBOL, SchemaOptions } from "./morphism"; | ||
/** | ||
@@ -36,3 +36,3 @@ * A structure-preserving object from a source data towards a target data. | ||
(iteratee: Source, source: Source[], target: Target[destinationProperty]): Target[destinationProperty]; | ||
} | ActionAggregator<Source> | ActionSelector<Source, Target> | StrictSchema<Target[destinationProperty], Source>; | ||
} | ActionAggregator<Source> | ActionSelector<Source, Target, destinationProperty> | StrictSchema<Target[destinationProperty], Source>; | ||
} & { | ||
@@ -44,3 +44,3 @@ [SCHEMA_OPTIONS_SYMBOL]?: SchemaOptions<Target>; | ||
(iteratee: Source, source: Source[], target: Target[destinationProperty]): Target[destinationProperty]; | ||
} | ActionAggregator<Source> | ActionSelector<Source, Target> | Schema<Target[destinationProperty], Source>; | ||
} | ActionAggregator<Source> | ActionSelector<Source, Target, destinationProperty> | Schema<Target[destinationProperty], Source>; | ||
} & { | ||
@@ -153,5 +153,5 @@ [SCHEMA_OPTIONS_SYMBOL]?: SchemaOptions<Target | any>; | ||
*/ | ||
export interface ActionSelector<Source = object, R = any> { | ||
export interface ActionSelector<Source = object, Target = any, TargetProperty extends keyof Target = any> { | ||
path: ActionString<Source> | ActionAggregator<Source>; | ||
fn: (fieldValue: any, object: Source, items: Source, objectToCompute: R) => R; | ||
fn: (fieldValue: any, object: Source, items: Source, objectToCompute: Target) => Target[TargetProperty]; | ||
} | ||
@@ -158,0 +158,0 @@ export interface Constructable<T> { |
{ | ||
"name": "morphism", | ||
"version": "1.12.2", | ||
"version": "1.12.3", | ||
"description": "Do not repeat anymore your objects transformations.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/nobrainr/morphism", |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
90487
1