exupery-core-async 0.3.4 → 0.3.6
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/algorithms/procedure/initialize_guaranteed_procedure.d.ts +2 -2
- package/dist/algorithms/procedure/initialize_unguaranteed_procedure.d.ts +2 -2
- package/dist/algorithms/procedure/initialize_unguaranteed_procedure.js +1 -1
- package/dist/algorithms/query/create_guaranteed_query.d.ts +2 -2
- package/dist/algorithms/query/create_unguaranteed_query.d.ts +2 -2
- package/dist/algorithms/query/merge_2_guaranteed_queries.d.ts +2 -2
- package/dist/index.d.ts +6 -9
- package/dist/index.js +2 -4
- package/dist/shorthands.d.ts +16 -21
- package/dist/types/Basic_Guaranteed_Query.d.ts +3 -0
- package/dist/types/Basic_Unguaranteed_Query.d.ts +3 -0
- package/package.json +2 -2
- package/dist/types/Guaranteed_Procedure.d.ts +0 -4
- package/dist/types/Guaranteed_Query.d.ts +0 -20
- package/dist/types/Unguaranteed_Procedure.d.ts +0 -5
- package/dist/types/Unguaranteed_Procedure.js +0 -2
- package/dist/types/Unguaranteed_Query.d.ts +0 -13
- package/dist/types/Unguaranteed_Query.js +0 -2
- /package/dist/types/{Guaranteed_Procedure.js → Basic_Guaranteed_Query.js} +0 -0
- /package/dist/types/{Guaranteed_Query.js → Basic_Unguaranteed_Query.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _et from "exupery-core-types";
|
|
2
2
|
type Executer = {
|
|
3
3
|
'execute': (on_finished: () => void) => void;
|
|
4
4
|
};
|
|
@@ -7,5 +7,5 @@ type Executer = {
|
|
|
7
7
|
* @param executer the function that produces the eventual value
|
|
8
8
|
* @returns
|
|
9
9
|
*/
|
|
10
|
-
export declare function __create_guaranted_procedure(executer: Executer): Guaranteed_Procedure_Promise;
|
|
10
|
+
export declare function __create_guaranted_procedure(executer: Executer): _et.Guaranteed_Procedure_Promise;
|
|
11
11
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _et from "exupery-core-types";
|
|
2
2
|
/**
|
|
3
3
|
* this function contains the body in which the async value or exception is executed
|
|
4
4
|
* after the execution, either the on_value or on_exception callback will be called
|
|
@@ -13,5 +13,5 @@ type Executer<E> = {
|
|
|
13
13
|
* @param executer the function that produces the eventual value
|
|
14
14
|
* @returns
|
|
15
15
|
*/
|
|
16
|
-
export declare function __create_unguaranteed_procedure<E>(executer: Executer<E>): Unguaranteed_Procedure_Promise<E>;
|
|
16
|
+
export declare function __create_unguaranteed_procedure<E>(executer: Executer<E>): _et.Unguaranteed_Procedure_Promise<E>;
|
|
17
17
|
export {};
|
|
@@ -8,7 +8,7 @@ class Unguaranteed_Procedure_Promise_Class {
|
|
|
8
8
|
__start(on_success, on_exception) {
|
|
9
9
|
this.executer.execute(on_success, on_exception);
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
map_error(handle_error) {
|
|
12
12
|
return new Unguaranteed_Procedure_Promise_Class({
|
|
13
13
|
'execute': (on_success, on_exception) => {
|
|
14
14
|
this.executer.execute(on_success, (error) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _et from "exupery-core-types";
|
|
2
2
|
type Executer<T> = {
|
|
3
3
|
'execute': (on_value: ($: T) => void) => void;
|
|
4
4
|
};
|
|
@@ -7,5 +7,5 @@ type Executer<T> = {
|
|
|
7
7
|
* @param executer the function that produces the eventual value
|
|
8
8
|
* @returns
|
|
9
9
|
*/
|
|
10
|
-
export declare function __create_guaranteed_query<T>(executer: Executer<T>): Guaranteed_Query_Promise<T>;
|
|
10
|
+
export declare function __create_guaranteed_query<T>(executer: Executer<T>): _et.Guaranteed_Query_Promise<T>;
|
|
11
11
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _et from "exupery-core-types";
|
|
2
2
|
/**
|
|
3
3
|
* this function contains the body in which the async value or exception is executed
|
|
4
4
|
* after the execution, either the on_value or on_exception callback will be called
|
|
@@ -13,5 +13,5 @@ type Executer<T, E> = {
|
|
|
13
13
|
* @param executer the function that produces the eventual value
|
|
14
14
|
* @returns
|
|
15
15
|
*/
|
|
16
|
-
export declare function __create_unguaranteed_query<T, E>(executer: Executer<T, E>): Unguaranteed_Query_Promise<T, E>;
|
|
16
|
+
export declare function __create_unguaranteed_query<T, E>(executer: Executer<T, E>): _et.Unguaranteed_Query_Promise<T, E>;
|
|
17
17
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _et from 'exupery-core-types';
|
|
2
2
|
export type Sync_Tuple_2<T1, T2> = {
|
|
3
3
|
readonly 'first': T1;
|
|
4
4
|
readonly 'second': T2;
|
|
5
5
|
};
|
|
6
|
-
export declare function merge_2_unguaranteed_queries<T1, T2>(first: Guaranteed_Query_Promise<T1>, second: Guaranteed_Query_Promise<T2>): Guaranteed_Query_Promise<Sync_Tuple_2<T1, T2>>;
|
|
6
|
+
export declare function merge_2_unguaranteed_queries<T1, T2>(first: _et.Guaranteed_Query_Promise<T1>, second: _et.Guaranteed_Query_Promise<T2>): _et.Guaranteed_Query_Promise<Sync_Tuple_2<T1, T2>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
export * from "./types/
|
|
3
|
-
export * from "./types/
|
|
4
|
-
export * from "./types/Guaranteed_Query";
|
|
1
|
+
import * as _et from "exupery-core-types";
|
|
2
|
+
export * from "./types/Basic_Unguaranteed_Query";
|
|
3
|
+
export * from "./types/Basic_Guaranteed_Query";
|
|
5
4
|
export * from "./algorithms/query/merge_2_guaranteed_queries";
|
|
6
5
|
export * from "./algorithms/query/create_guaranteed_query";
|
|
7
6
|
export * from "./algorithms/query/create_unguaranteed_query";
|
|
8
7
|
export * from "./algorithms/procedure/initialize_guaranteed_procedure";
|
|
9
8
|
export * from "./algorithms/procedure/initialize_unguaranteed_procedure";
|
|
10
9
|
export * from "./shorthands";
|
|
11
|
-
import { Guaranteed_Query_Promise } from "./types/Guaranteed_Query";
|
|
12
|
-
import { Unguaranteed_Query_Promise } from "./types/Unguaranteed_Query";
|
|
13
10
|
export declare const query: {
|
|
14
11
|
guaranteed: {
|
|
15
|
-
'create result': <T>($: T) => Guaranteed_Query_Promise<T>;
|
|
12
|
+
'create result': <T>($: T) => _et.Guaranteed_Query_Promise<T>;
|
|
16
13
|
};
|
|
17
14
|
unguaranteed: {
|
|
18
|
-
'create result': <T, E>($: T) => Unguaranteed_Query_Promise<T, E>;
|
|
19
|
-
'raise exception': <T, E>($: E) => Unguaranteed_Query_Promise<T, E>;
|
|
15
|
+
'create result': <T, E>($: T) => _et.Unguaranteed_Query_Promise<T, E>;
|
|
16
|
+
'raise exception': <T, E>($: E) => _et.Unguaranteed_Query_Promise<T, E>;
|
|
20
17
|
};
|
|
21
18
|
};
|
package/dist/index.js
CHANGED
|
@@ -16,10 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.query = void 0;
|
|
18
18
|
//types
|
|
19
|
-
__exportStar(require("./types/
|
|
20
|
-
__exportStar(require("./types/
|
|
21
|
-
__exportStar(require("./types/Unguaranteed_Query"), exports);
|
|
22
|
-
__exportStar(require("./types/Guaranteed_Query"), exports);
|
|
19
|
+
__exportStar(require("./types/Basic_Unguaranteed_Query"), exports);
|
|
20
|
+
__exportStar(require("./types/Basic_Guaranteed_Query"), exports);
|
|
23
21
|
//functions
|
|
24
22
|
__exportStar(require("./algorithms/query/merge_2_guaranteed_queries"), exports);
|
|
25
23
|
__exportStar(require("./algorithms/query/create_guaranteed_query"), exports);
|
package/dist/shorthands.d.ts
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import * as _ei from 'exupery-core-internals';
|
|
2
1
|
import * as _et from 'exupery-core-types';
|
|
3
|
-
import { Basic_Unguaranteed_Query_Promise } from "./types/
|
|
4
|
-
import { Basic_Guaranteed_Query_Promise } from "./types/
|
|
5
|
-
import { Guaranteed_Procedure_Promise, Guaranteed_Procedure } from "./types/Guaranteed_Procedure";
|
|
6
|
-
import { Unguaranteed_Procedure, Unguaranteed_Procedure_Promise } from "./types/Unguaranteed_Procedure";
|
|
7
|
-
import { Unguaranteed_Query } from "./types/Unguaranteed_Query";
|
|
8
|
-
import { Guaranteed_Query } from "./types/Guaranteed_Query";
|
|
2
|
+
import { Basic_Unguaranteed_Query_Promise } from "./types/Basic_Unguaranteed_Query";
|
|
3
|
+
import { Basic_Guaranteed_Query_Promise } from "./types/Basic_Guaranteed_Query";
|
|
9
4
|
import { Error_Handler } from "./types/Error_Handler";
|
|
10
5
|
/**
|
|
11
6
|
*
|
|
12
7
|
* @param action gpi
|
|
13
8
|
* @param error_transform gt
|
|
14
9
|
*/
|
|
15
|
-
export declare const eh: <Parameters, Error, Resources>(action: Guaranteed_Procedure<Parameters, Resources>, error_transform:
|
|
10
|
+
export declare const eh: <Parameters, Error, Resources>(action: _et.Guaranteed_Procedure<Parameters, Resources>, error_transform: _et.Transformer_Without_Parameters<Error, Parameters>, resources: Resources) => Error_Handler<Error>;
|
|
16
11
|
export declare namespace gp {
|
|
17
12
|
/**
|
|
18
13
|
*
|
|
@@ -20,7 +15,7 @@ export declare namespace gp {
|
|
|
20
15
|
* @param query g.q
|
|
21
16
|
* @returns
|
|
22
17
|
*/
|
|
23
|
-
const action: <Parameters, Resources>(action: Guaranteed_Procedure<Parameters, Resources>, query: Basic_Guaranteed_Query_Promise<Parameters>, $r: Resources) => Guaranteed_Procedure_Promise;
|
|
18
|
+
const action: <Parameters, Resources>(action: _et.Guaranteed_Procedure<Parameters, Resources>, query: Basic_Guaranteed_Query_Promise<Parameters>, $r: Resources) => _et.Guaranteed_Procedure_Promise;
|
|
24
19
|
}
|
|
25
20
|
export declare namespace gq {
|
|
26
21
|
/**
|
|
@@ -36,7 +31,7 @@ export declare namespace gq {
|
|
|
36
31
|
* @param result_transformation gt
|
|
37
32
|
* @returns
|
|
38
33
|
*/
|
|
39
|
-
const g: <Result_After_Transformation, Parameters, Query_Result, Resources>(the_query: Guaranteed_Query<Parameters, Query_Result, Resources>, parameters: Basic_Guaranteed_Query_Promise<Parameters>, result_transformation:
|
|
34
|
+
const g: <Result_After_Transformation, Parameters, Query_Result, Resources>(the_query: _et.Guaranteed_Query<Parameters, Query_Result, Resources>, parameters: Basic_Guaranteed_Query_Promise<Parameters>, result_transformation: _et.Transformer_Without_Parameters<Query_Result, Result_After_Transformation>, resources: Resources) => Basic_Guaranteed_Query_Promise<Result_After_Transformation>;
|
|
40
35
|
}
|
|
41
36
|
export declare namespace gt {
|
|
42
37
|
/**
|
|
@@ -44,7 +39,7 @@ export declare namespace gt {
|
|
|
44
39
|
* @param the_transformation gt
|
|
45
40
|
* @returns
|
|
46
41
|
*/
|
|
47
|
-
const g: <In, Out>(the_transformation:
|
|
42
|
+
const g: <In, Out>(the_transformation: _et.Transformer_Without_Parameters<In, Out>) => _et.Transformer_Without_Parameters<In, Out>;
|
|
48
43
|
}
|
|
49
44
|
export declare namespace up {
|
|
50
45
|
/**
|
|
@@ -52,39 +47,39 @@ export declare namespace up {
|
|
|
52
47
|
* @param action upi
|
|
53
48
|
* @param query u.q
|
|
54
49
|
*/
|
|
55
|
-
const action: <Error, Parameters, Resources>(action: Unguaranteed_Procedure<Parameters, Error, Resources>, query: Basic_Unguaranteed_Query_Promise<Parameters, Error>, resources: Resources) => Unguaranteed_Procedure_Promise<Error>;
|
|
50
|
+
const action: <Error, Parameters, Resources>(action: _et.Unguaranteed_Procedure<Parameters, Error, Resources>, query: Basic_Unguaranteed_Query_Promise<Parameters, Error>, resources: Resources) => _et.Unguaranteed_Procedure_Promise<Error>;
|
|
56
51
|
/**
|
|
57
52
|
*
|
|
58
53
|
* @param steps up[]
|
|
59
54
|
* @returns
|
|
60
55
|
*/
|
|
61
|
-
const sequence: <Error>(steps: Unguaranteed_Procedure_Promise<Error>[]) => Unguaranteed_Procedure_Promise<Error>;
|
|
56
|
+
const sequence: <Error>(steps: _et.Unguaranteed_Procedure_Promise<Error>[]) => _et.Unguaranteed_Procedure_Promise<Error>;
|
|
62
57
|
/**
|
|
63
58
|
*
|
|
64
59
|
* @param the_array up[]
|
|
65
60
|
* @param aggregate_exceptions gt
|
|
66
61
|
* @returns
|
|
67
62
|
*/
|
|
68
|
-
const array: <Error, Element_Error>(the_array: _et.Array<Unguaranteed_Procedure_Promise<Element_Error>>, aggregate_exceptions:
|
|
63
|
+
const array: <Error, Element_Error>(the_array: _et.Array<_et.Unguaranteed_Procedure_Promise<Element_Error>>, aggregate_exceptions: _et.Transformer_Without_Parameters<_et.Array<Element_Error>, Error>) => _et.Unguaranteed_Procedure_Promise<Error>;
|
|
69
64
|
/**
|
|
70
65
|
*
|
|
71
66
|
* @param the_dictionary dict<up>
|
|
72
67
|
* @param aggregate_exceptions gt
|
|
73
68
|
* @returns
|
|
74
69
|
*/
|
|
75
|
-
const dictionary: <Error, Element_Error>(the_dictionary: _et.Dictionary<Unguaranteed_Procedure_Promise<Element_Error>>, aggregate_exceptions:
|
|
70
|
+
const dictionary: <Error, Element_Error>(the_dictionary: _et.Dictionary<_et.Unguaranteed_Procedure_Promise<Element_Error>>, aggregate_exceptions: _et.Transformer_Without_Parameters<_et.Dictionary<Element_Error>, Error>) => _et.Unguaranteed_Procedure_Promise<Error>;
|
|
76
71
|
}
|
|
77
72
|
export declare namespace upi {
|
|
78
73
|
/**
|
|
79
74
|
*
|
|
80
75
|
* @param action gpi
|
|
81
76
|
*/
|
|
82
|
-
const g: <Parameters, Error, Resources>(action: Guaranteed_Procedure<Parameters, Resources>, $r: Resources) => Unguaranteed_Procedure<Parameters, Error, Resources>;
|
|
77
|
+
const g: <Parameters, Error, Resources>(action: _et.Guaranteed_Procedure<Parameters, Resources>, $r: Resources) => _et.Unguaranteed_Procedure<Parameters, Error, Resources>;
|
|
83
78
|
/**
|
|
84
79
|
*
|
|
85
80
|
* @param action upi
|
|
86
81
|
*/
|
|
87
|
-
const u: <Parameters, Error, Action_Error, Resources>(action: Unguaranteed_Procedure<Parameters, Action_Error, Resources>, error_transform:
|
|
82
|
+
const u: <Parameters, Error, Action_Error, Resources>(action: _et.Unguaranteed_Procedure<Parameters, Action_Error, Resources>, error_transform: _et.Transformer_Without_Parameters<Action_Error, Error>, error_handler?: Error_Handler<Action_Error>) => _et.Unguaranteed_Procedure<Parameters, Error, Resources>;
|
|
88
83
|
}
|
|
89
84
|
export declare namespace uq {
|
|
90
85
|
/**
|
|
@@ -102,14 +97,14 @@ export declare namespace uq {
|
|
|
102
97
|
* @param error_handler eh
|
|
103
98
|
* @returns
|
|
104
99
|
*/
|
|
105
|
-
const u: <Result_After_Transformation, Error, Parameters, Query_Result, Query_Error, Resources>(the_query: Unguaranteed_Query<Parameters, Query_Result, Query_Error, Resources>, parameters: Basic_Unguaranteed_Query_Promise<Parameters, Error>, resources: Resources, result_refinement:
|
|
100
|
+
const u: <Result_After_Transformation, Error, Parameters, Query_Result, Query_Error, Resources>(the_query: _et.Unguaranteed_Query<Parameters, Query_Result, Query_Error, Resources>, parameters: Basic_Unguaranteed_Query_Promise<Parameters, Error>, resources: Resources, result_refinement: _et.Refiner_Without_Parameters<Query_Result, Result_After_Transformation, Error>, error_transform: _et.Transformer_Without_Parameters<Query_Error, Error>, error_handler?: Error_Handler<Query_Error>) => Basic_Unguaranteed_Query_Promise<Result_After_Transformation, Error>;
|
|
106
101
|
/**
|
|
107
102
|
* guaranteed query
|
|
108
103
|
* @param the_query gqi
|
|
109
104
|
* @param parameters u.q
|
|
110
105
|
* @param result_refinement ut
|
|
111
106
|
*/
|
|
112
|
-
const g: <Result_After_Transformation, Error, Parameters, Query_Result, Resources>(the_query: Guaranteed_Query<Parameters, Query_Result, Resources>, parameters: Basic_Unguaranteed_Query_Promise<Parameters, Error>, result_refinement:
|
|
107
|
+
const g: <Result_After_Transformation, Error, Parameters, Query_Result, Resources>(the_query: _et.Guaranteed_Query<Parameters, Query_Result, Resources>, parameters: Basic_Unguaranteed_Query_Promise<Parameters, Error>, result_refinement: _et.Refiner_Without_Parameters<Query_Result, Result_After_Transformation, Error>, resources: Resources) => Basic_Unguaranteed_Query_Promise<Result_After_Transformation, Error>;
|
|
113
108
|
}
|
|
114
109
|
export declare namespace ut {
|
|
115
110
|
/**
|
|
@@ -119,10 +114,10 @@ export declare namespace ut {
|
|
|
119
114
|
* @param error_handler eh
|
|
120
115
|
* @returns
|
|
121
116
|
*/
|
|
122
|
-
const u: <In, Out, Error, Transformation_Error>(the_refinement:
|
|
117
|
+
const u: <In, Out, Error, Transformation_Error>(the_refinement: _et.Refiner_Without_Parameters<In, Out, Transformation_Error>, error_transform: _et.Transformer_Without_Parameters<Transformation_Error, Error>, error_handler?: Error_Handler<Transformation_Error>) => _et.Refiner_Without_Parameters<In, Out, Error>;
|
|
123
118
|
/**
|
|
124
119
|
*
|
|
125
120
|
* @param the_transformation gt
|
|
126
121
|
*/
|
|
127
|
-
const g: <In, Out, Error>(the_transformation:
|
|
122
|
+
const g: <In, Out, Error>(the_transformation: _et.Transformer_Without_Parameters<In, Out>) => _et.Refiner_Without_Parameters<In, Out, Error>;
|
|
128
123
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "exupery-core-async",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "Corno",
|
|
6
6
|
"description": "async types for Exupery",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"url": "git+https://github.com/corno/exupery-core.git"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"exupery-core-internals": "^0.3.
|
|
25
|
+
"exupery-core-internals": "^0.3.1"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export type Guaranteed_Query<Parameters, Result, Resources> = ($: Parameters, $r: Resources) => Guaranteed_Query_Promise<Result>;
|
|
2
|
-
/**
|
|
3
|
-
* A value that will asynchronously become available.
|
|
4
|
-
* Similar to the concept of a promise, but with a smaller API.
|
|
5
|
-
*/
|
|
6
|
-
export type Guaranteed_Query_Promise<Result> = {
|
|
7
|
-
map<NT>(handle_value: ($: Result) => NT): Guaranteed_Query_Promise<NT>;
|
|
8
|
-
/**
|
|
9
|
-
* maps the current async value into a new async value
|
|
10
|
-
* @param handle_value callback that transforms the actual value into a new Async_Value
|
|
11
|
-
*/
|
|
12
|
-
then<NT>(handle_value: ($: Result) => Guaranteed_Query_Promise<NT>): Guaranteed_Query_Promise<NT>;
|
|
13
|
-
/**
|
|
14
|
-
* This method is only to be used by resources
|
|
15
|
-
*/
|
|
16
|
-
__start(on_finished: ($: Result) => void): void;
|
|
17
|
-
};
|
|
18
|
-
export type Basic_Guaranteed_Query_Promise<Result> = {
|
|
19
|
-
__start: (on_finished: (result: Result) => void) => void;
|
|
20
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type Unguaranteed_Procedure<Parameters, Error, Resources> = ($: Parameters, $r: Resources) => Unguaranteed_Procedure_Promise<Error>;
|
|
2
|
-
export type Unguaranteed_Procedure_Promise<Error> = {
|
|
3
|
-
__start: (on_success: () => void, on_error: (error: Error) => void) => void;
|
|
4
|
-
transform_error<NE>(handle_error: (error: Error) => NE): Unguaranteed_Procedure_Promise<NE>;
|
|
5
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Guaranteed_Query_Promise } from "./Guaranteed_Query";
|
|
2
|
-
export type Unguaranteed_Query<Parameters, Result, Error, Resources> = ($: Parameters, $r: Resources) => Unguaranteed_Query_Promise<Result, Error>;
|
|
3
|
-
export type Unguaranteed_Query_Promise<Result, Error> = {
|
|
4
|
-
map_<NT>(handle_value: ($: Result) => NT): Unguaranteed_Query_Promise<NT, Error>;
|
|
5
|
-
map_exception_<NE>(handle_exception: ($: Error) => NE): Unguaranteed_Query_Promise<Result, NE>;
|
|
6
|
-
then<NT>(handle_value: ($: Result) => Guaranteed_Query_Promise<NT>): Unguaranteed_Query_Promise<NT, Error>;
|
|
7
|
-
then_unguaranteed<NT>(handle_value: ($: Result) => Unguaranteed_Query_Promise<NT, Error>): Unguaranteed_Query_Promise<NT, Error>;
|
|
8
|
-
catch_(handle_exception: ($: Error) => Guaranteed_Query_Promise<Result>): Guaranteed_Query_Promise<Result>;
|
|
9
|
-
__start(on_success: ($: Result) => void, on_error: ($: Error) => void): void;
|
|
10
|
-
};
|
|
11
|
-
export type Basic_Unguaranteed_Query_Promise<Result, Error> = {
|
|
12
|
-
__start: (on_success: (result: Result) => void, on_error: (error: Error) => void) => void;
|
|
13
|
-
};
|
|
File without changes
|
|
File without changes
|