exupery-core-types 0.3.16 → 0.3.18
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/Procedure.d.ts +4 -4
- package/dist/Process_Result.d.ts +5 -4
- package/package.json +1 -1
package/dist/Procedure.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Query_Promise } from "./Query";
|
|
2
2
|
export type Procedure<Parameters, Error, Resources> = ($r: Resources) => Procedure_Primed_With_Resources<Parameters, Error>;
|
|
3
3
|
export type Procedure_Primed_With_Resources<Parameters, Error> = {
|
|
4
|
-
'execute with synchronous data': (parameters: Parameters) => Procedure_Promise<Error>;
|
|
5
|
-
'execute with synchronous data
|
|
6
|
-
'execute with asynchronous data': (query: Query_Promise<Parameters, Error>) => Procedure_Promise<Error>;
|
|
7
|
-
'execute with asynchronous data
|
|
4
|
+
'execute with synchronous data without error transformation': (parameters: Parameters) => Procedure_Promise<Error>;
|
|
5
|
+
'execute with synchronous data': <New_Error>(parameters: Parameters, transform_error: (error: Error) => New_Error) => Procedure_Promise<New_Error>;
|
|
6
|
+
'execute with asynchronous data without error transformation': (query: Query_Promise<Parameters, Error>) => Procedure_Promise<Error>;
|
|
7
|
+
'execute with asynchronous data': <New_Error>(query: Query_Promise<Parameters, Error>, transform_error: (error: Error) => New_Error) => Procedure_Promise<New_Error>;
|
|
8
8
|
};
|
|
9
9
|
export type Procedure_Promise<Error> = {
|
|
10
10
|
__start: (on_success: () => void, on_error: (error: Error) => void) => void;
|
package/dist/Process_Result.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Refiner_With_Parameters, Refiner_Without_Parameters } from "./Refiner";
|
|
2
2
|
import { Transformer_With_Parameters, Transformer_Without_Parameters } from "./Transformer";
|
|
3
3
|
export interface Process_Result<Output, Error> {
|
|
4
|
-
'transform': <
|
|
5
|
-
'transform
|
|
6
|
-
'
|
|
7
|
-
'refine
|
|
4
|
+
'transform': <New_Output>(transformer: Transformer_Without_Parameters<Output, New_Output>) => Process_Result<New_Output, Error>;
|
|
5
|
+
'transform error': <New_Error>(transformer: Transformer_Without_Parameters<Error, New_Error>) => Process_Result<Output, New_Error>;
|
|
6
|
+
'transform with parameters': <New_Output, Parameters>(transformer: Transformer_With_Parameters<Output, Parameters, New_Output>, parameters: Parameters) => Process_Result<New_Output, Error>;
|
|
7
|
+
'refine': <New_Output, Refine_Error>(refiner: Refiner_Without_Parameters<Output, New_Output, Refine_Error>, map_error: ($: Refine_Error) => Error) => Process_Result<New_Output, Error>;
|
|
8
|
+
'refine with parameters': <New_Output, Parameters, Refine_Error>(refiner: Refiner_With_Parameters<Output, Parameters, New_Output, Refine_Error>, parameters: Parameters, map_error: ($: Refine_Error) => Error) => Process_Result<New_Output, Error>;
|
|
8
9
|
__extract_data: (success: ($: Output) => void, error: ($: Error) => void) => void;
|
|
9
10
|
}
|