pareto-core-interface 0.1.7 → 0.1.8

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.
@@ -1,6 +1,6 @@
1
1
  import { Queryer } from "./Queryer";
2
- import { Deprecated_Refiner_Catcher } from "../Deprecated_Refinement_Result";
3
2
  import { Transformer } from "./Transformer";
3
+ import { Abort } from "../abort";
4
4
  export interface Query_Result<Output, Error> {
5
5
  query_result: null;
6
6
  transform_result<New_Output>(transformer: Transformer<Output, New_Output>): Query_Result<New_Output, Error>;
@@ -11,8 +11,8 @@ export interface Query_Result<Output, Error> {
11
11
  * if the query fails, rework its error into the desired error type
12
12
  */
13
13
  error_transformer: Transformer<Query_Error, Error>): Query_Result<New_Output, Error>;
14
- deprecated_refine_old_without_error_transformation<New_Output>(refiner: Deprecated_Refiner_Catcher<New_Output, Error, Output>): Query_Result<New_Output, Error>;
15
- deprecated_refine_old<New_Output, Refiner_Error>(refiner: Deprecated_Refiner_Catcher<New_Output, Refiner_Error, Output>,
14
+ refine_without_error_transformation<New_Output>(callback: ($: Output, abort: Abort<Error>) => New_Output): Query_Result<New_Output, Error>;
15
+ refine<New_Output, Refiner_Error>(callback: ($: Output, abort: Abort<Refiner_Error>) => New_Output,
16
16
  /**
17
17
  * if the refiner fails, rework its error into the desired error type
18
18
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pareto-core-interface",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Corno",
6
6
  "description": "core types needed to define an interface in the Pareto language",