exupery-core-internals 0.3.15 → 0.3.16
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.
|
@@ -6,5 +6,5 @@ import * as _et from "exupery-core-types";
|
|
|
6
6
|
* @param on_error the callback to call when an error is produced
|
|
7
7
|
*/
|
|
8
8
|
type Executer<Output, Error> = (on_result: ($: Output) => void, on_error: ($: Error) => void) => void;
|
|
9
|
-
export declare function
|
|
9
|
+
export declare function __create_query_result<T, E>(executer: Executer<T, E>): _et.Query_Result<T, E>;
|
|
10
10
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.__create_query_result = __create_query_result;
|
|
4
4
|
class Query_Result_Class {
|
|
5
5
|
constructor(executer) {
|
|
6
6
|
this.executer = executer;
|
|
@@ -67,6 +67,6 @@ class Query_Result_Class {
|
|
|
67
67
|
this.executer(on_result, on_error);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function __create_query_result(executer) {
|
|
71
71
|
return new Query_Result_Class(executer);
|
|
72
72
|
}
|