pareto-core 0.1.4 → 0.1.5

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.
Files changed (46) hide show
  1. package/dist/{command → __internals/async}/Command_Block.d.ts +1 -1
  2. package/dist/{command → __internals/async}/Command_Block.js +1 -1
  3. package/dist/{command → __internals/async}/command.d.ts +1 -1
  4. package/dist/{command → __internals/async}/command.js +1 -1
  5. package/dist/{command → __internals/async}/command_procedure.d.ts +1 -1
  6. package/dist/{command → __internals/async}/command_procedure.js +1 -1
  7. package/dist/{command → __internals/async}/command_promise.d.ts +1 -1
  8. package/dist/{command → __internals/async}/command_promise.js +1 -1
  9. package/dist/{command/statement.d.ts → __internals/async/command_statement.d.ts} +1 -1
  10. package/dist/{command/statement.js → __internals/async/command_statement.js} +5 -5
  11. package/dist/{command → __internals/async}/handle_command_block.d.ts +1 -1
  12. package/dist/{command → __internals/async}/handle_command_block.js +1 -1
  13. package/dist/{query → __internals/async}/query.d.ts +1 -1
  14. package/dist/{query → __internals/async}/query.js +1 -1
  15. package/dist/{query/expression.d.ts → __internals/async/query_expression.d.ts} +1 -1
  16. package/dist/__internals/async/query_expression.js +49 -0
  17. package/dist/{query → __internals/async}/query_function.d.ts +1 -1
  18. package/dist/__internals/async/query_function.js +15 -0
  19. package/dist/{query → __internals/async}/query_result.d.ts +1 -1
  20. package/dist/{query → __internals/async}/query_result.js +2 -2
  21. package/dist/__internals/sync/expression/decide/index.d.ts +48 -6
  22. package/dist/__internals/sync/expression/decide/index.js +67 -8
  23. package/dist/command.d.ts +10 -0
  24. package/dist/{command/index.js → command.js} +8 -8
  25. package/dist/query.d.ts +6 -0
  26. package/dist/{query/index.js → query.js} +7 -7
  27. package/dist/{refiner/index.d.ts → refiner.d.ts} +4 -4
  28. package/dist/{refiner/index.js → refiner.js} +5 -5
  29. package/dist/transformer.d.ts +4 -0
  30. package/dist/{transformer/index.js → transformer.js} +5 -5
  31. package/package.json +1 -1
  32. package/dist/__internals/sync/expression/decide/state_group/assert_unreachable.d.ts +0 -15
  33. package/dist/__internals/sync/expression/decide/state_group/assert_unreachable.js +0 -21
  34. package/dist/__internals/sync/expression/decide/state_group/select.d.ts +0 -15
  35. package/dist/__internals/sync/expression/decide/state_group/select.js +0 -21
  36. package/dist/__internals/sync/expression/decide/state_group/switch_state.d.ts +0 -19
  37. package/dist/__internals/sync/expression/decide/state_group/switch_state.js +0 -24
  38. package/dist/command/index.d.ts +0 -10
  39. package/dist/query/expression.js +0 -49
  40. package/dist/query/index.d.ts +0 -6
  41. package/dist/query/query_function.js +0 -15
  42. package/dist/refiner/resolve.d.ts +0 -176
  43. package/dist/refiner/resolve.js +0 -289
  44. package/dist/transformer/deprecated_shorthands_for_unresolved.d.ts +0 -40
  45. package/dist/transformer/deprecated_shorthands_for_unresolved.js +0 -77
  46. package/dist/transformer/index.d.ts +0 -4
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.$$ = $$;
4
- /**
5
- * au means 'assert unreachable'. Used in the 'default' clause of switch statements to ensure
6
- * during compile time that all possible cases have been implemented
7
- *
8
- * example:
9
- *
10
- * switch (x) {
11
- * case "5":
12
- * break
13
- * default: au(x)
14
- * }
15
- *
16
- * @param _x
17
- */
18
- function $$(_x) {
19
- throw new Error("unreachable");
20
- }
21
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXJ0X3VucmVhY2hhYmxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL19faW50ZXJuYWxzL3N5bmMvZXhwcmVzc2lvbi9kZWNpZGUvc3RhdGVfZ3JvdXAvYXNzZXJ0X3VucmVhY2hhYmxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBZUMsZ0JBRUE7QUFoQkQ7Ozs7Ozs7Ozs7Ozs7R0FhRztBQUNGLFNBQWdCLEVBQUUsQ0FBSyxFQUFTO0lBQzdCLE1BQU0sSUFBSSxLQUFLLENBQUMsYUFBYSxDQUFDLENBQUE7QUFDbEMsQ0FBQyJ9
@@ -1,15 +0,0 @@
1
- /**
2
- * cc means 'change context'. It creates a new scope in which a variable name can be used again
3
- * (usually '$', a variable name that indicates the current context in exupery)
4
- *
5
- * example:
6
- *
7
- * cc($[1], ($) => {
8
- * //here $[1] has become $
9
- * })
10
- *
11
- * @param input
12
- * @param callback
13
- * @returns
14
- */
15
- export declare function $$<T extends readonly [string, any], RT>(input: T, callback: (output: T) => RT): RT;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- /**
3
- * cc means 'change context'. It creates a new scope in which a variable name can be used again
4
- * (usually '$', a variable name that indicates the current context in exupery)
5
- *
6
- * example:
7
- *
8
- * cc($[1], ($) => {
9
- * //here $[1] has become $
10
- * })
11
- *
12
- * @param input
13
- * @param callback
14
- * @returns
15
- */
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.$$ = $$;
18
- function $$(input, callback) {
19
- return callback(input);
20
- }
21
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL19faW50ZXJuYWxzL3N5bmMvZXhwcmVzc2lvbi9kZWNpZGUvc3RhdGVfZ3JvdXAvc2VsZWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7Ozs7Ozs7OztHQWFHOztBQUVILGdCQUVDO0FBRkQsU0FBZ0IsRUFBRSxDQUF1QyxLQUFRLEVBQUUsUUFBMkI7SUFDMUYsT0FBTyxRQUFRLENBQUMsS0FBSyxDQUFDLENBQUE7QUFDMUIsQ0FBQyJ9
@@ -1,19 +0,0 @@
1
- export type State<T> = readonly [string | boolean, T];
2
- /**
3
- * ss means 'switch state'.
4
- * used to make the value T the context variable ('$')
5
- * given a tuple of a string (or boolean) and a value T,
6
- * the function takes the value T and calls back the callback ($c)
7
- * notice that the string part is never used
8
- *
9
- * example:
10
- *
11
- * switch ($.state[0]) {
12
- * case "on":
13
- * return ss($.state, ($) => $.value
14
- * case "off":
15
- * return ss($.state, ($) => null
16
- * default: au($.state[0])
17
- * }
18
- */
19
- export declare function $$<T, RT>($: State<T>, $c: ($: T) => RT): RT;
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.$$ = $$;
4
- /**
5
- * ss means 'switch state'.
6
- * used to make the value T the context variable ('$')
7
- * given a tuple of a string (or boolean) and a value T,
8
- * the function takes the value T and calls back the callback ($c)
9
- * notice that the string part is never used
10
- *
11
- * example:
12
- *
13
- * switch ($.state[0]) {
14
- * case "on":
15
- * return ss($.state, ($) => $.value
16
- * case "off":
17
- * return ss($.state, ($) => null
18
- * default: au($.state[0])
19
- * }
20
- */
21
- function $$($, $c) {
22
- return $c($[1]);
23
- }
24
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3dpdGNoX3N0YXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL19faW50ZXJuYWxzL3N5bmMvZXhwcmVzc2lvbi9kZWNpZGUvc3RhdGVfZ3JvdXAvc3dpdGNoX3N0YXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBcUJBLGdCQUtDO0FBdEJEOzs7Ozs7Ozs7Ozs7Ozs7O0dBZ0JHO0FBQ0gsU0FBZ0IsRUFBRSxDQUNkLENBQVcsRUFDWCxFQUFnQjtJQUVoQixPQUFPLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQTtBQUNuQixDQUFDIn0=
@@ -1,10 +0,0 @@
1
- /**
2
- * these functions coming from core-internals should be exposed for command development
3
- */
4
- export { deprecated_cc } from "../__internals/sync/expression/special";
5
- export * from "../__internals/sync/expression/decide";
6
- export * from "../__internals/sync/extracts/literal";
7
- export * from "./command_procedure";
8
- export * from "./command_promise";
9
- export * from "./command";
10
- export * from "./statement";
@@ -1,49 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.direct_error = exports.direct_result = exports.dictionaryx = void 0;
4
- const query_result_1 = require("./query_result");
5
- const asynchronous_collection_builder_1 = require("../__internals/async/asynchronous_collection_builder");
6
- const create_asynchronous_processes_monitor_1 = require("../__internals/async/create_asynchronous_processes_monitor");
7
- var dictionaryx;
8
- (function (dictionaryx) {
9
- dictionaryx.parallel = (dictionary, aggregate_errors) => {
10
- return (0, query_result_1.__query_result)((on_success, on_error) => {
11
- let has_errors = false;
12
- const errors_builder = (0, asynchronous_collection_builder_1.create_asynchronous_dictionary_builder)();
13
- const results_builder = (0, asynchronous_collection_builder_1.create_asynchronous_dictionary_builder)();
14
- (0, create_asynchronous_processes_monitor_1.create_asynchronous_processes_monitor)((monitor) => {
15
- dictionary.__d_map(($, key) => {
16
- monitor['report process started']();
17
- $.__extract_data(($) => {
18
- results_builder['add entry'](key, $);
19
- monitor['report process finished']();
20
- }, ($) => {
21
- has_errors = true;
22
- errors_builder['add entry'](key, $);
23
- monitor['report process finished']();
24
- });
25
- });
26
- }, () => {
27
- if (has_errors) {
28
- on_error(aggregate_errors(errors_builder['get dictionary']()));
29
- }
30
- else {
31
- on_success(results_builder['get dictionary']());
32
- }
33
- });
34
- });
35
- };
36
- })(dictionaryx || (exports.dictionaryx = dictionaryx = {}));
37
- const direct_result = (result) => {
38
- return (0, query_result_1.__query_result)((on_success, on_error) => {
39
- on_success(result);
40
- });
41
- };
42
- exports.direct_result = direct_result;
43
- const direct_error = ($) => {
44
- return (0, query_result_1.__query_result)((on_value, on_error) => {
45
- on_error($);
46
- });
47
- };
48
- exports.direct_error = direct_error;
49
- //# sourceMappingURL=data:application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UMsQ0FBQyxDQUFBO0FBQ04sQ0FBQyxDQUFBO0FBTlksUUFBQSxZQUFZLGdCQU14QiJ9
@@ -1,6 +0,0 @@
1
- export * from "../__internals/sync/expression/decide";
2
- export * from "../__internals/sync/extracts/literal";
3
- export * from "./expression";
4
- export * from "./query_function";
5
- export * from "./query_result";
6
- export * from "./query";
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.query_function = void 0;
4
- const query_result_1 = require("./query_result");
5
- const query_function = (handler) => {
6
- return ($q) => ($p, error_transformer) => {
7
- return (0, query_result_1.__query_result)((on_success, on_error) => {
8
- handler($p, $q).__extract_data(on_success, (e) => {
9
- on_error(error_transformer(e));
10
- });
11
- });
12
- };
13
- };
14
- exports.query_function = query_function;
15
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnlfZnVuY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcXVlcnkvcXVlcnlfZnVuY3Rpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBR0EsaURBQStDO0FBRXhDLE1BQU0sY0FBYyxHQUFHLENBQzFCLE9BR29DLEVBQ3FDLEVBQUU7SUFDM0UsT0FBTyxDQUFDLEVBQUUsRUFBRSxFQUFFLENBQUMsQ0FBQyxFQUFFLEVBQUUsaUJBQWlCLEVBQUUsRUFBRTtRQUNyQyxPQUFPLElBQUEsNkJBQWMsRUFBQyxDQUFDLFVBQVUsRUFBRSxRQUFRLEVBQUUsRUFBRTtZQUMzQyxPQUFPLENBQUMsRUFBRSxFQUFFLEVBQUUsQ0FBQyxDQUFDLGNBQWMsQ0FDMUIsVUFBVSxFQUNWLENBQUMsQ0FBQyxFQUFFLEVBQUU7Z0JBQ0YsUUFBUSxDQUFDLGlCQUFpQixDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUE7WUFDbEMsQ0FBQyxDQUNKLENBQUE7UUFDTCxDQUFDLENBQUMsQ0FBQTtJQUNOLENBQUMsQ0FBQTtBQUNMLENBQUMsQ0FBQTtBQWhCWSxRQUFBLGNBQWMsa0JBZ0IxQiJ9
@@ -1,176 +0,0 @@
1
- import * as _pi from "../interface";
2
- import * as initialize from "../__internals/sync/expression/initialize";
3
- type Location_to_String<Source> = ($: Source) => string;
4
- export type _T_Location_2_String<Source> = Location_to_String<Source>;
5
- type Non_Circular_Result<T> = ['error', ['circular', _pi.List<string>]] | ['resolved', T];
6
- type Lookup<T> = {
7
- __get_possible_entry: (key: string) => _pi.Optional_Value<T>;
8
- };
9
- type Acyclic_Lookup<T> = _pi.Optional_Value<Lookup<Non_Circular_Result<T>>>;
10
- export type _T_Acyclic_Lookup<T> = Acyclic_Lookup<T>;
11
- type Possibly_Circular_Result<T> = _pi.Circular_Dependency<T>;
12
- type Cyclic_Lookup<T> = _pi.Optional_Value<Lookup<Possibly_Circular_Result<T>>>;
13
- export type _T_Cyclic_Lookup<T> = Cyclic_Lookup<T>;
14
- type Lookup_Stack<T> = _pi.List<Acyclic_Lookup<T>>;
15
- export type _T_Lookup_Stack<T> = Lookup_Stack<T>;
16
- declare namespace unresolved$ {
17
- type Derived_Reference<M_Source, T_Type> = null;
18
- type Dictionary<M_Source, T_D> = {
19
- readonly 'dictionary': _pi.Dictionary<{
20
- readonly 'entry': T_D;
21
- readonly 'location': M_Source;
22
- }>;
23
- readonly 'location': M_Source;
24
- };
25
- type List<M_Source, T_L> = {
26
- readonly 'list': _pi.List<{
27
- readonly 'element': T_L;
28
- readonly 'location': M_Source;
29
- }>;
30
- readonly 'location': M_Source;
31
- };
32
- type Ordered_Dictionary<M_Source, T_D> = {
33
- readonly 'dictionary': _pi.Dictionary<{
34
- readonly 'entry': T_D;
35
- readonly 'location': M_Source;
36
- }>;
37
- readonly 'location': M_Source;
38
- };
39
- type Reference_To_Circular_Dependent_Sibling<M_Source, T_Dictionary_Entry> = {
40
- readonly 'key': string;
41
- readonly 'location': M_Source;
42
- };
43
- type Reference_To_Normal_Dictionary_Entry<M_Source, T_Dictionary_Entry> = {
44
- readonly 'key': string;
45
- readonly 'location': M_Source;
46
- };
47
- type Reference_To_Stacked_Dictionary_Entry<M_Source, T_Dictionary_Entry> = {
48
- readonly 'key': string;
49
- readonly 'location': M_Source;
50
- };
51
- type State_Group<M_Source, T_SG> = {
52
- readonly 'location': M_Source;
53
- readonly 'state group': T_SG;
54
- };
55
- }
56
- declare namespace resolved$ {
57
- type Derived_Reference<M_Source, T_Type> = T_Type;
58
- type Dictionary<M_Source, T_D> = _pi.Dictionary<T_D>;
59
- type List<M_Source, T_L> = _pi.List<T_L>;
60
- type Ordered_Dictionary<M_Source, T_D> = {
61
- readonly 'dictionary': _pi.Dictionary<T_D>;
62
- readonly 'ordered list': _pi.List<{
63
- readonly 'key': string;
64
- readonly 'value': T_D;
65
- }>;
66
- };
67
- type Reference_To_Circular_Dependent_Sibling<M_Source, T_Dictionary_Entry> = {
68
- readonly 'entry': _pi.Circular_Dependency<T_Dictionary_Entry>;
69
- readonly 'key': string;
70
- };
71
- type Reference_To_Normal_Dictionary_Entry<M_Source, T_Dictionary_Entry> = {
72
- readonly 'entry': T_Dictionary_Entry;
73
- readonly 'key': string;
74
- };
75
- type Reference_To_Stacked_Dictionary_Entry<M_Source, T_Dictionary_Entry> = {
76
- readonly 'entry': T_Dictionary_Entry;
77
- readonly 'key': string;
78
- readonly 'up steps': number;
79
- };
80
- type State_Group<M_Source, T_SG> = T_SG;
81
- }
82
- export type Acyclic_Entry_Reference<T_Dictionary_Entry> = {
83
- readonly 'entry': T_Dictionary_Entry;
84
- readonly 'key': string;
85
- };
86
- type Key_Value_Location_Triplet<Source, T> = {
87
- 'key': string;
88
- 'value': T;
89
- 'location': Source;
90
- };
91
- export type Path<Source, Resolved_Element, Seed> = {
92
- 'list': _pi.List<Resolved_Element>;
93
- 'result': {
94
- 'data': Seed;
95
- };
96
- };
97
- export type Resolved_Step<Resolved_Element, Seed> = {
98
- 'element': Resolved_Element;
99
- 'result': Seed;
100
- };
101
- type Resolve_Error_Type = [
102
- 'circular dependency',
103
- {
104
- 'keys': _pi.List<string>;
105
- }
106
- ] | [
107
- 'no such entry',
108
- {
109
- 'key': string;
110
- }
111
- ] | ['no context lookup', null] | [
112
- 'missing denseness entry',
113
- {
114
- 'key': string;
115
- }
116
- ] | [
117
- 'index out of bounds',
118
- {
119
- 'up steps taken': number;
120
- }
121
- ] | [
122
- 'no element found at index',
123
- {
124
- 'index': number;
125
- }
126
- ];
127
- export declare const abort: <Source>(location: Source, type: Resolve_Error_Type, location_to_string: Location_to_String<Source>) => never;
128
- export declare const dictionary_to_lookup: <T>($: _pi.Dictionary<T>, $p: null) => Acyclic_Lookup<T>;
129
- export declare const get_possibly_circular_dependent_sibling_entry: <Source, T>($: Cyclic_Lookup<T>, $p: {
130
- "reference": unresolved$.Reference_To_Circular_Dependent_Sibling<Source, T>;
131
- "location 2 string": Location_to_String<Source>;
132
- }) => resolved$.Reference_To_Circular_Dependent_Sibling<Source, T>;
133
- export declare const push_stack: <T extends initialize.list.NonUndefined>($: _pi.List<T>, $p: {
134
- "element": T;
135
- }) => _pi.List<T>;
136
- export declare const get_entry_from_stack: <Source, T>($: Lookup_Stack<T>, $p: {
137
- "reference": unresolved$.Reference_To_Stacked_Dictionary_Entry<Source, T>;
138
- "location 2 string": Location_to_String<Source>;
139
- }) => resolved$.Reference_To_Stacked_Dictionary_Entry<Source, T>;
140
- export declare const get_entry: <Source, T>($: Acyclic_Lookup<T>, $p: {
141
- "reference": unresolved$.Reference_To_Normal_Dictionary_Entry<Source, T>;
142
- "location 2 string": Location_to_String<Source>;
143
- }) => resolved$.Reference_To_Normal_Dictionary_Entry<Source, T>;
144
- export declare const resolve_path: <Source, Unresolved_Element, Resolved_Element extends initialize.list.NonUndefined, Seed>($: unresolved$.List<Source, Unresolved_Element>, $p: {
145
- "seed": Seed;
146
- "map": ($: Unresolved_Element, current: Seed) => Resolved_Step<Resolved_Element, Seed>;
147
- }) => Path<Source, Resolved_Element, Seed>;
148
- export declare const resolve_dictionary: <Source, TUnresolved, TResolved>($: unresolved$.Dictionary<Source, TUnresolved>, $p: {
149
- "map": ($: Key_Value_Location_Triplet<Source, TUnresolved>, $l: {
150
- possibly_circular_dependent_siblings: Cyclic_Lookup<TResolved>;
151
- }) => TResolved;
152
- "location 2 string": ($: Source) => string;
153
- }) => resolved$.Dictionary<Source, TResolved>;
154
- export declare const resolve_dense_dictionary: <Source, TUnresolved, TResolved, TBenchmark>($: unresolved$.Dictionary<Source, TUnresolved>, $p: {
155
- "denseness benchmark": _pi.Dictionary<TBenchmark>;
156
- "map": ($: Key_Value_Location_Triplet<Source, TUnresolved>, $l: {
157
- possibly_circular_dependent_siblings: Cyclic_Lookup<TResolved>;
158
- }) => TResolved;
159
- "location 2 string": ($: Source) => string;
160
- }) => resolved$.Dictionary<Source, TResolved>;
161
- export declare const resolve_dense_ordered_dictionary: <Source, TUnresolved, TResolved, TBenchmark>($: unresolved$.Dictionary<Source, TUnresolved>, $p: {
162
- "denseness benchmark": _pi.Dictionary<TBenchmark>;
163
- "map": ($: Key_Value_Location_Triplet<Source, TUnresolved>, $l: {
164
- possibly_circular_dependent_siblings: Cyclic_Lookup<TResolved>;
165
- not_circular_dependent_siblings: Acyclic_Lookup<TResolved>;
166
- }) => TResolved;
167
- "location 2 string": ($: Source) => string;
168
- }) => resolved$.Ordered_Dictionary<Source, TResolved>;
169
- export declare const resolve_ordered_dictionary: <Source, TUnresolved, TResolved>($: unresolved$.Dictionary<Source, TUnresolved>, $p: {
170
- "map": ($: Key_Value_Location_Triplet<Source, TUnresolved>, $l: {
171
- possibly_circular_dependent_siblings: Cyclic_Lookup<TResolved>;
172
- not_circular_dependent_siblings: Acyclic_Lookup<TResolved>;
173
- }) => TResolved;
174
- "location 2 string": ($: Source) => string;
175
- }) => resolved$.Ordered_Dictionary<Source, TResolved>;
176
- export {};