pareto-core 0.1.120 → 0.1.121
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/command.d.ts +7 -1
- package/dist/command.js +16 -3
- package/package.json +1 -1
package/dist/command.d.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
+
import * as _pi from "./interface";
|
|
1
2
|
import command_procedure from "./__internals/async/command_procedure";
|
|
2
3
|
import __command_promise from "./__internals/async/command_promise";
|
|
3
4
|
import __command from "./__internals/async/command";
|
|
4
5
|
export { command_procedure, __command_promise, __command };
|
|
5
|
-
export * from "./__internals/sync/assign/decide";
|
|
6
6
|
export * from "./__internals/sync/extracts_for_async";
|
|
7
7
|
export * from "./__internals/async/command_procedure";
|
|
8
8
|
export * from "./__internals/async/command_promise";
|
|
9
9
|
export * from "./__internals/async/command";
|
|
10
10
|
export * from "./__internals/async/command_statement";
|
|
11
|
+
export declare namespace decide {
|
|
12
|
+
type Option<T extends _pi.Value> = readonly [string, T];
|
|
13
|
+
function ss<T extends _pi.Value, RT extends _pi.Command_Promise<any>>(option: Option<T>, $c: ($: T) => RT): RT;
|
|
14
|
+
function au<RT extends _pi.Command_Promise<any>>(_x: never): RT;
|
|
15
|
+
const state: <T extends _pi.State, RT extends _pi.Command_Promise<any>>(state: T, assign: (output: T) => RT) => RT;
|
|
16
|
+
}
|
package/dist/command.js
CHANGED
|
@@ -17,17 +17,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.__command = exports.__command_promise = exports.command_procedure = void 0;
|
|
20
|
+
exports.decide = exports.__command = exports.__command_promise = exports.command_procedure = void 0;
|
|
21
21
|
const command_procedure_1 = __importDefault(require("./__internals/async/command_procedure"));
|
|
22
22
|
exports.command_procedure = command_procedure_1.default;
|
|
23
23
|
const command_promise_1 = __importDefault(require("./__internals/async/command_promise"));
|
|
24
24
|
exports.__command_promise = command_promise_1.default;
|
|
25
25
|
const command_1 = __importDefault(require("./__internals/async/command"));
|
|
26
26
|
exports.__command = command_1.default;
|
|
27
|
-
__exportStar(require("./__internals/sync/assign/decide"), exports); //for handling instructions
|
|
28
27
|
__exportStar(require("./__internals/sync/extracts_for_async"), exports);
|
|
29
28
|
__exportStar(require("./__internals/async/command_procedure"), exports);
|
|
30
29
|
__exportStar(require("./__internals/async/command_promise"), exports);
|
|
31
30
|
__exportStar(require("./__internals/async/command"), exports);
|
|
32
31
|
__exportStar(require("./__internals/async/command_statement"), exports);
|
|
33
|
-
|
|
32
|
+
var decide;
|
|
33
|
+
(function (decide) {
|
|
34
|
+
function ss(option, $c) {
|
|
35
|
+
return $c(option[1]);
|
|
36
|
+
}
|
|
37
|
+
decide.ss = ss;
|
|
38
|
+
function au(_x) {
|
|
39
|
+
throw new Error("unreachable");
|
|
40
|
+
}
|
|
41
|
+
decide.au = au;
|
|
42
|
+
decide.state = (state, assign) => {
|
|
43
|
+
return assign(state);
|
|
44
|
+
};
|
|
45
|
+
})(decide || (exports.decide = decide = {}));
|
|
46
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWFuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9jb21tYW5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBRUEsOEZBQXFFO0FBS2pFLDRCQUxHLDJCQUFpQixDQUtIO0FBSnJCLDBGQUFtRTtBQUsvRCw0QkFMRyx5QkFBaUIsQ0FLSDtBQUpyQiwwRUFBbUQ7QUFLL0Msb0JBTEcsaUJBQVMsQ0FLSDtBQUdiLHdFQUFxRDtBQUNyRCx3RUFBcUQ7QUFDckQsc0VBQW1EO0FBQ25ELDhEQUEyQztBQ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