ballerina-core 1.0.220 → 1.0.222
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/bin/main.d.ts +1 -1
- package/bin/src/api-response-handler/coroutines/runner.d.ts +9 -2
- package/bin/src/api-response-handler/state.d.ts +12 -12
- package/bin/src/async/domains/mirroring/domains/collection/coroutines/synchronizers.d.ts +400 -75
- package/bin/src/async/domains/mirroring/domains/collection/state.d.ts +38 -25
- package/bin/src/async/domains/mirroring/domains/entity/domains/loaded-collection/state.d.ts +12 -8
- package/bin/src/async/domains/mirroring/domains/entity/domains/loaded-collection-entity/state.d.ts +12 -9
- package/bin/src/async/domains/mirroring/domains/entity/domains/loaded-entities/state.d.ts +17 -8
- package/bin/src/async/domains/mirroring/domains/entity/domains/loaded-entity/state.d.ts +16 -13
- package/bin/src/async/domains/mirroring/domains/entity/state.d.ts +12 -9
- package/bin/src/async/domains/mirroring/domains/singleton/coroutines/synchronizers.d.ts +233 -41
- package/bin/src/async/domains/mirroring/domains/singleton/state.d.ts +24 -15
- package/bin/src/async/domains/mirroring/domains/synchronized-entities/state.d.ts +16 -10
- package/bin/src/async/domains/synchronized/coroutines/synchronize.d.ts +29 -4
- package/bin/src/collections/domains/immutable/domains/list/state.d.ts +19 -15
- package/bin/src/collections/domains/immutable/domains/map/state.d.ts +30 -16
- package/bin/src/collections/domains/immutable/domains/orderedMap/state.d.ts +53 -25
- package/bin/src/collections/domains/valueOrErrors/state.d.ts +53 -27
- package/bin/src/coroutines/builder.d.ts +135 -49
- package/bin/src/coroutines/state.d.ts +186 -71
- package/bin/src/coroutines/template.d.ts +17 -8
- package/bin/src/debounced/coroutines/debounce.d.ts +15 -6
- package/bin/src/debounced/state.d.ts +26 -19
- package/bin/src/forms/domains/attachments/views/attachments-view.d.ts +4 -4
- package/bin/src/forms/domains/collection/domains/reference/state.d.ts +29 -22
- package/bin/src/forms/domains/collection/domains/selection/state.d.ts +37 -15
- package/bin/src/forms/domains/dispatched-forms/built-ins/state.d.ts +555 -120
- package/bin/src/forms/domains/dispatched-forms/built-ins/state.js +1983 -740
- package/bin/src/forms/domains/dispatched-forms/deserializer/coroutines/runner.d.ts +22 -2
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/apis/state.d.ts +119 -63
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/enum/state.d.ts +35 -19
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/list/state.d.ts +60 -28
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/lookup/state.d.ts +121 -56
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/map/state.d.ts +42 -15
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/nestedRenderer/state.d.ts +70 -29
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/one/state.d.ts +61 -18
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/primitive/state.d.ts +20 -10
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/readOnly/state.d.ts +50 -19
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/record/domains/recordFieldRenderer/state.d.ts +42 -11
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/record/state.d.ts +49 -19
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/record/state.js +129 -55
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/stream/state.d.ts +29 -14
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/sum/state.d.ts +49 -19
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/sumUnitDate/state.d.ts +21 -13
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/table/domains/tableCellRenderer/state.d.ts +39 -10
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/table/state.d.ts +79 -34
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/tuple/state.d.ts +37 -13
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/domains/union/state.d.ts +40 -15
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/forms/domains/renderer/state.d.ts +107 -19
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/domains/types/state.d.ts +410 -221
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/state.d.ts +103 -51
- package/bin/src/forms/domains/dispatched-forms/deserializer/domains/specification/state.js +255 -94
- package/bin/src/forms/domains/dispatched-forms/deserializer/state.d.ts +327 -87
- package/bin/src/forms/domains/dispatched-forms/deserializer/template.d.ts +27 -2
- package/bin/src/forms/domains/dispatched-forms/runner/coroutines/runner.d.ts +27 -4
- package/bin/src/forms/domains/dispatched-forms/runner/coroutines/runner.js +136 -82
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/base-64-file/state.d.ts +35 -7
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/base-64-file/template.d.ts +28 -4
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/boolean/state.d.ts +33 -7
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/boolean/template.d.ts +25 -4
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/date/state.d.ts +56 -19
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/date/template.d.ts +29 -7
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/enum/state.d.ts +43 -15
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/enum/template.d.ts +41 -8
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/enum-multiselect/state.d.ts +45 -11
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/enum-multiselect/template.d.ts +42 -8
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/injectables/state.d.ts +55 -19
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/list/state.d.ts +76 -27
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/list/state.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/list/state.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/list/template.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/list/template.js +104 -290
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/list/template.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/lookup-type/state.d.ts +41 -7
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/lookup-type/template.d.ts +45 -4
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/map/state.d.ts +103 -26
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/map/template.d.ts +64 -9
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/number/state.d.ts +37 -7
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/number/template.d.ts +29 -4
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/one/coroutines/_debouncer.d.ts +50 -13
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/one/coroutines/_initializeOne.d.ts +59 -12
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/one/coroutines/_initializeStream.d.ts +47 -11
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/one/coroutines/builder.d.ts +3868 -1065
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/one/coroutines/runner.d.ts +161 -36
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/one/state.d.ts +245 -80
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/one/template.d.ts +61 -10
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/readOnly/state.d.ts +65 -20
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/readOnly/template.d.ts +47 -6
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/record/state.d.ts +81 -21
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/record/template.d.ts +59 -10
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/searchable-infinite-stream/state.d.ts +123 -49
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/searchable-infinite-stream/template.d.ts +45 -8
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/searchable-infinite-stream-multiselect/state.d.ts +121 -51
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/searchable-infinite-stream-multiselect/template.d.ts +45 -8
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/secret/state.d.ts +38 -8
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/secret/template.d.ts +29 -4
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/state.d.ts +58 -34
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/string/state.d.ts +38 -8
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/string/template.d.ts +29 -4
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/sum/state.d.ts +93 -29
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/sum/template.d.ts +55 -7
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/table/coroutines/builder.d.ts +2737 -931
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/table/coroutines/infiniteLoader.d.ts +48 -10
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/table/coroutines/initialiseFiltersAndSorting.d.ts +54 -10
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/table/coroutines/initialiseTable.d.ts +56 -12
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/table/coroutines/loadWithRetries.d.ts +33 -3
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/table/coroutines/runner.d.ts +130 -26
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/table/state.d.ts +406 -186
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/table/template.d.ts +102 -15
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/tuple/state.d.ts +75 -18
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/tuple/template.d.ts +51 -6
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/union/state.d.ts +76 -18
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/union/template.d.ts +51 -6
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/unit/state.d.ts +45 -13
- package/bin/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/unit/template.d.ts +29 -6
- package/bin/src/forms/domains/dispatched-forms/runner/domains/deltas/state.d.ts +600 -440
- package/bin/src/forms/domains/dispatched-forms/runner/domains/deltas/state.d.ts.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/deltas/state.js +5 -11
- package/bin/src/forms/domains/dispatched-forms/runner/domains/deltas/state.js.map +1 -1
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/list/state.d.ts +24 -5
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/lookup/state.d.ts +26 -6
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/map/state.d.ts +23 -5
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/multiSelection/state.d.ts +22 -5
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/nestedDispatcher/state.d.ts +41 -6
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/one/state.d.ts +57 -7
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/primitive/state.d.ts +22 -5
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/readOnly/state.d.ts +24 -5
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/record/recordField/state.d.ts +26 -5
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/record/state.d.ts +49 -6
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/singleSelectionDispatcher/state.d.ts +22 -5
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/sum/state.d.ts +25 -5
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/table/state.d.ts +54 -7
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/tupleDispatcher/state.d.ts +25 -5
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/domains/unionDispatcher/state.d.ts +25 -5
- package/bin/src/forms/domains/dispatched-forms/runner/domains/dispatcher/state.d.ts +44 -6
- package/bin/src/forms/domains/dispatched-forms/runner/domains/traversal/state.d.ts +38 -18
- package/bin/src/forms/domains/dispatched-forms/runner/domains/traversal/state.js +773 -423
- package/bin/src/forms/domains/dispatched-forms/runner/state.d.ts +90 -37
- package/bin/src/forms/domains/dispatched-forms/runner/template.d.ts +28 -4
- package/bin/src/forms/domains/launcher/coroutines/runner.d.ts +12 -4
- package/bin/src/forms/domains/launcher/domains/create/coroutines/runner.d.ts +16 -3
- package/bin/src/forms/domains/launcher/domains/create/state.d.ts +236 -121
- package/bin/src/forms/domains/launcher/domains/create/template.d.ts +20 -6
- package/bin/src/forms/domains/launcher/domains/edit/coroutines/runner.d.ts +16 -3
- package/bin/src/forms/domains/launcher/domains/edit/state.d.ts +230 -121
- package/bin/src/forms/domains/launcher/domains/edit/template.d.ts +20 -6
- package/bin/src/forms/domains/launcher/domains/passthrough/coroutines/runner.d.ts +20 -5
- package/bin/src/forms/domains/launcher/domains/passthrough/state.d.ts +123 -58
- package/bin/src/forms/domains/launcher/domains/passthrough/template.d.ts +23 -6
- package/bin/src/forms/domains/launcher/state.d.ts +62 -43
- package/bin/src/forms/domains/launcher/template.d.ts +35 -15
- package/bin/src/forms/domains/parser/coroutines/runner.d.ts +13 -5
- package/bin/src/forms/domains/parser/domains/built-ins/state.d.ts +135 -71
- package/bin/src/forms/domains/parser/domains/deltas/state.d.ts +417 -296
- package/bin/src/forms/domains/parser/domains/injectables/state.d.ts +29 -20
- package/bin/src/forms/domains/parser/domains/layout/state.d.ts +78 -49
- package/bin/src/forms/domains/parser/domains/predicates/domains/extractor/state.d.ts +19 -6
- package/bin/src/forms/domains/parser/domains/predicates/state.d.ts +503 -315
- package/bin/src/forms/domains/parser/domains/renderer/state.d.ts +245 -92
- package/bin/src/forms/domains/parser/domains/types/state.d.ts +170 -130
- package/bin/src/forms/domains/parser/domains/validator/state.d.ts +143 -117
- package/bin/src/forms/domains/parser/state.d.ts +217 -82
- package/bin/src/forms/domains/parser/state.js +612 -373
- package/bin/src/forms/domains/parser/template.d.ts +13 -5
- package/bin/src/forms/domains/primitives/domains/base-64-file/state.d.ts +19 -11
- package/bin/src/forms/domains/primitives/domains/base-64-file/template.d.ts +18 -7
- package/bin/src/forms/domains/primitives/domains/boolean/state.d.ts +19 -11
- package/bin/src/forms/domains/primitives/domains/boolean/template.d.ts +24 -8
- package/bin/src/forms/domains/primitives/domains/date/state.d.ts +39 -20
- package/bin/src/forms/domains/primitives/domains/date/template.d.ts +18 -7
- package/bin/src/forms/domains/primitives/domains/enum/state.d.ts +31 -15
- package/bin/src/forms/domains/primitives/domains/enum/template.d.ts +18 -7
- package/bin/src/forms/domains/primitives/domains/enum-multiselect/state.d.ts +17 -8
- package/bin/src/forms/domains/primitives/domains/enum-multiselect/template.d.ts +18 -7
- package/bin/src/forms/domains/primitives/domains/list/state.d.ts +45 -24
- package/bin/src/forms/domains/primitives/domains/list/template.d.ts +38 -13
- package/bin/src/forms/domains/primitives/domains/map/state.d.ts +68 -29
- package/bin/src/forms/domains/primitives/domains/map/template.d.ts +65 -25
- package/bin/src/forms/domains/primitives/domains/number/state.d.ts +19 -11
- package/bin/src/forms/domains/primitives/domains/number/template.d.ts +24 -8
- package/bin/src/forms/domains/primitives/domains/searchable-infinite-stream/state.d.ts +89 -42
- package/bin/src/forms/domains/primitives/domains/searchable-infinite-stream/template.d.ts +22 -8
- package/bin/src/forms/domains/primitives/domains/searchable-infinite-stream-multiselect/state.d.ts +18 -9
- package/bin/src/forms/domains/primitives/domains/searchable-infinite-stream-multiselect/template.d.ts +18 -7
- package/bin/src/forms/domains/primitives/domains/secret/state.d.ts +19 -11
- package/bin/src/forms/domains/primitives/domains/secret/template.d.ts +18 -7
- package/bin/src/forms/domains/primitives/domains/string/state.d.ts +21 -13
- package/bin/src/forms/domains/primitives/domains/string/template.d.ts +18 -7
- package/bin/src/forms/domains/primitives/domains/sum/state.d.ts +62 -22
- package/bin/src/forms/domains/primitives/domains/sum/template.d.ts +48 -16
- package/bin/src/forms/domains/primitives/domains/tuple/state.d.ts +48 -23
- package/bin/src/forms/domains/primitives/domains/tuple/template.d.ts +46 -18
- package/bin/src/forms/domains/primitives/domains/unit/state.d.ts +17 -10
- package/bin/src/forms/domains/primitives/domains/unit/template.d.ts +9 -4
- package/bin/src/forms/domains/singleton/state.d.ts +144 -43
- package/bin/src/forms/domains/singleton/template.d.ts +177 -88
- package/bin/src/infinite-data-stream/coroutines/builder.d.ts +209 -27
- package/bin/src/infinite-data-stream/coroutines/infiniteLoader.d.ts +21 -5
- package/bin/src/infinite-data-stream/coroutines/runner.d.ts +11 -3
- package/bin/src/infinite-data-stream/template.d.ts +10 -3
- package/bin/src/queue/state.d.ts +23 -7
- package/bin/src/template/state.d.ts +153 -45
- package/bin/src/validation/state.d.ts +23 -9
- package/bin/src/value/domains/mutable-value/state.d.ts +3 -3
- package/bin/src/value-infinite-data-stream/coroutines/builder.d.ts +207 -25
- package/bin/src/value-infinite-data-stream/coroutines/infiniteLoader.d.ts +4 -2
- package/bin/src/value-infinite-data-stream/coroutines/runner.d.ts +8 -2
- package/bin/src/value-infinite-data-stream/state.d.ts +134 -68
- package/bin/src/value-infinite-data-stream/template.d.ts +7 -2
- package/package.json +1 -1
- package/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/list/state.ts +17 -1
- package/src/forms/domains/dispatched-forms/runner/domains/abstract-renderers/list/template.tsx +44 -3
- package/src/forms/domains/dispatched-forms/runner/domains/deltas/state.ts +13 -22
|
@@ -1,30 +1,212 @@
|
|
|
1
1
|
import { InfiniteStreamWritableState } from "../state";
|
|
2
|
-
export declare const StreamCo: <
|
|
2
|
+
export declare const StreamCo: <
|
|
3
|
+
Element extends {
|
|
3
4
|
Id: string;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
5
|
+
},
|
|
6
|
+
>() => {
|
|
7
|
+
Seq: (
|
|
8
|
+
ps: import("../../coroutines/state").Coroutine<
|
|
9
|
+
InfiniteStreamWritableState<Element>,
|
|
10
|
+
InfiniteStreamWritableState<Element>,
|
|
11
|
+
import("../../../main").Unit
|
|
12
|
+
>[],
|
|
13
|
+
) => import("../../coroutines/state").Coroutine<
|
|
14
|
+
InfiniteStreamWritableState<Element>,
|
|
15
|
+
InfiniteStreamWritableState<Element>,
|
|
16
|
+
import("../../../main").Unit
|
|
17
|
+
>;
|
|
18
|
+
GetState: () => import("../../coroutines/state").Coroutine<
|
|
19
|
+
InfiniteStreamWritableState<Element>,
|
|
20
|
+
InfiniteStreamWritableState<Element>,
|
|
21
|
+
InfiniteStreamWritableState<Element>
|
|
22
|
+
>;
|
|
23
|
+
SetState: (
|
|
24
|
+
stateUpdater: import("../../../main").BasicUpdater<
|
|
25
|
+
InfiniteStreamWritableState<Element>
|
|
26
|
+
>,
|
|
27
|
+
) => import("../../coroutines/state").Coroutine<
|
|
28
|
+
InfiniteStreamWritableState<Element>,
|
|
29
|
+
InfiniteStreamWritableState<Element>,
|
|
30
|
+
import("../../../main").Unit
|
|
31
|
+
>;
|
|
32
|
+
UpdateState: (
|
|
33
|
+
stateUpdater: import("../../fun/state").BasicFun<
|
|
34
|
+
InfiniteStreamWritableState<Element>,
|
|
35
|
+
import("../../../main").BasicUpdater<InfiniteStreamWritableState<Element>>
|
|
36
|
+
>,
|
|
37
|
+
) => import("../../coroutines/state").Coroutine<
|
|
38
|
+
InfiniteStreamWritableState<Element>,
|
|
39
|
+
InfiniteStreamWritableState<Element>,
|
|
40
|
+
import("../../../main").Unit
|
|
41
|
+
>;
|
|
42
|
+
Any: (
|
|
43
|
+
ps: import("../../coroutines/state").Coroutine<
|
|
44
|
+
InfiniteStreamWritableState<Element>,
|
|
45
|
+
InfiniteStreamWritableState<Element>,
|
|
46
|
+
import("../../../main").Unit
|
|
47
|
+
>[],
|
|
48
|
+
) => import("../../coroutines/state").Coroutine<
|
|
49
|
+
InfiniteStreamWritableState<Element>,
|
|
50
|
+
InfiniteStreamWritableState<Element>,
|
|
51
|
+
import("../../../main").Unit
|
|
52
|
+
>;
|
|
53
|
+
All: <result>(
|
|
54
|
+
ps: import("../../coroutines/state").Coroutine<
|
|
55
|
+
InfiniteStreamWritableState<Element>,
|
|
56
|
+
InfiniteStreamWritableState<Element>,
|
|
57
|
+
result
|
|
58
|
+
>[],
|
|
59
|
+
) => import("../../coroutines/state").Coroutine<
|
|
60
|
+
InfiniteStreamWritableState<Element>,
|
|
61
|
+
InfiniteStreamWritableState<Element>,
|
|
62
|
+
result[]
|
|
63
|
+
>;
|
|
64
|
+
Yield: (
|
|
65
|
+
next: import("../../coroutines/state").Coroutine<
|
|
66
|
+
InfiniteStreamWritableState<Element>,
|
|
67
|
+
InfiniteStreamWritableState<Element>,
|
|
68
|
+
import("../../../main").Unit
|
|
69
|
+
>,
|
|
70
|
+
) => import("../../coroutines/state").Coroutine<
|
|
71
|
+
InfiniteStreamWritableState<Element>,
|
|
72
|
+
InfiniteStreamWritableState<Element>,
|
|
73
|
+
import("../../../main").Unit
|
|
74
|
+
>;
|
|
75
|
+
Wait: (
|
|
76
|
+
ms: number,
|
|
77
|
+
) => import("../../coroutines/state").Coroutine<
|
|
78
|
+
InfiniteStreamWritableState<Element>,
|
|
79
|
+
InfiniteStreamWritableState<Element>,
|
|
80
|
+
import("../../../main").Unit
|
|
81
|
+
>;
|
|
82
|
+
Await: <r, err>(
|
|
83
|
+
p: import("../../fun/state").BasicFun<
|
|
84
|
+
import("../../../main").Unit,
|
|
85
|
+
Promise<r>
|
|
86
|
+
>,
|
|
87
|
+
onErr: import("../../fun/state").BasicFun<any, err>,
|
|
88
|
+
debugName?: string,
|
|
89
|
+
) => import("../../coroutines/state").Coroutine<
|
|
90
|
+
InfiniteStreamWritableState<Element>,
|
|
91
|
+
InfiniteStreamWritableState<Element>,
|
|
92
|
+
import("../../../main").Sum<r, err>
|
|
93
|
+
>;
|
|
94
|
+
Repeat: (
|
|
95
|
+
p: import("../../coroutines/state").Coroutine<
|
|
96
|
+
InfiniteStreamWritableState<Element>,
|
|
97
|
+
InfiniteStreamWritableState<Element>,
|
|
98
|
+
import("../../../main").Unit
|
|
99
|
+
>,
|
|
100
|
+
) => import("../../coroutines/state").Coroutine<
|
|
101
|
+
InfiniteStreamWritableState<Element>,
|
|
102
|
+
InfiniteStreamWritableState<Element>,
|
|
103
|
+
import("../../../main").Unit
|
|
104
|
+
>;
|
|
105
|
+
Return: <r>(
|
|
106
|
+
res: r,
|
|
107
|
+
) => import("../../coroutines/state").Coroutine<
|
|
108
|
+
InfiniteStreamWritableState<Element>,
|
|
109
|
+
InfiniteStreamWritableState<Element>,
|
|
110
|
+
r
|
|
111
|
+
>;
|
|
112
|
+
While: (
|
|
113
|
+
predicate: import("../../fun/state").BasicFun<
|
|
114
|
+
[InfiniteStreamWritableState<Element>],
|
|
115
|
+
boolean
|
|
116
|
+
>,
|
|
117
|
+
p: import("../../coroutines/state").Coroutine<
|
|
118
|
+
InfiniteStreamWritableState<Element>,
|
|
119
|
+
InfiniteStreamWritableState<Element>,
|
|
120
|
+
import("../../../main").Unit
|
|
121
|
+
>,
|
|
122
|
+
) => import("../../coroutines/state").Coroutine<
|
|
123
|
+
InfiniteStreamWritableState<Element>,
|
|
124
|
+
InfiniteStreamWritableState<Element>,
|
|
125
|
+
import("../../../main").Unit
|
|
126
|
+
>;
|
|
127
|
+
For: <element>(
|
|
128
|
+
collection: import("immutable").Collection<number, element>,
|
|
129
|
+
) => (
|
|
130
|
+
p: import("../../fun/state").BasicFun<
|
|
131
|
+
element,
|
|
132
|
+
import("../../coroutines/state").Coroutine<
|
|
133
|
+
InfiniteStreamWritableState<Element>,
|
|
134
|
+
InfiniteStreamWritableState<Element>,
|
|
135
|
+
import("../../../main").Unit
|
|
136
|
+
>
|
|
137
|
+
>,
|
|
138
|
+
) => import("../../coroutines/state").Coroutine<
|
|
139
|
+
InfiniteStreamWritableState<Element>,
|
|
140
|
+
InfiniteStreamWritableState<Element>,
|
|
141
|
+
import("../../../main").Unit
|
|
142
|
+
>;
|
|
143
|
+
Embed: <parentContext, parentState, result>(
|
|
144
|
+
p: import("../../coroutines/state").Coroutine<
|
|
145
|
+
InfiniteStreamWritableState<Element>,
|
|
146
|
+
InfiniteStreamWritableState<Element>,
|
|
147
|
+
result
|
|
148
|
+
>,
|
|
149
|
+
narrow: import("../../fun/state").BasicFun<
|
|
150
|
+
parentContext & parentState,
|
|
151
|
+
InfiniteStreamWritableState<Element>
|
|
152
|
+
>,
|
|
153
|
+
widen: import("../../fun/state").BasicFun<
|
|
154
|
+
import("../../../main").BasicUpdater<
|
|
155
|
+
InfiniteStreamWritableState<Element>
|
|
156
|
+
>,
|
|
157
|
+
import("../../../main").BasicUpdater<parentState>
|
|
158
|
+
>,
|
|
159
|
+
) => import("../../coroutines/state").Coroutine<
|
|
160
|
+
parentContext & parentState,
|
|
161
|
+
parentState,
|
|
162
|
+
result
|
|
163
|
+
>;
|
|
164
|
+
Template: <fm>(
|
|
165
|
+
initialCoroutine: import("../../coroutines/state").Coroutine<
|
|
166
|
+
InfiniteStreamWritableState<Element>,
|
|
167
|
+
InfiniteStreamWritableState<Element>,
|
|
168
|
+
import("../../../main").Unit
|
|
169
|
+
>,
|
|
170
|
+
options?:
|
|
171
|
+
| import("../../coroutines/template").CoroutineComponentOptions<
|
|
172
|
+
InfiniteStreamWritableState<Element>,
|
|
173
|
+
InfiniteStreamWritableState<Element>
|
|
174
|
+
>
|
|
175
|
+
| undefined,
|
|
176
|
+
) => import("../../template/state").Template<
|
|
177
|
+
InfiniteStreamWritableState<Element>,
|
|
178
|
+
InfiniteStreamWritableState<Element>,
|
|
179
|
+
fm
|
|
180
|
+
>;
|
|
181
|
+
Trigger: <
|
|
182
|
+
event_1 extends {
|
|
183
|
+
id: import("../../../main").Guid;
|
|
184
|
+
kind: kind;
|
|
185
|
+
},
|
|
186
|
+
kind extends string,
|
|
187
|
+
>(
|
|
188
|
+
event: event_1,
|
|
189
|
+
) => import("../../coroutines/state").Coroutine<
|
|
190
|
+
InfiniteStreamWritableState<Element> & {
|
|
191
|
+
outboundEvents: import("immutable").Map<
|
|
192
|
+
kind,
|
|
193
|
+
import("immutable").OrderedMap<string, event_1>
|
|
194
|
+
>;
|
|
195
|
+
},
|
|
196
|
+
InfiniteStreamWritableState<Element> & {
|
|
197
|
+
outboundEvents: import("immutable").Map<
|
|
198
|
+
kind,
|
|
199
|
+
import("immutable").OrderedMap<string, event_1>
|
|
200
|
+
>;
|
|
201
|
+
},
|
|
202
|
+
import("../../../main").Unit
|
|
203
|
+
>;
|
|
204
|
+
Do: (
|
|
205
|
+
action: import("../../../main").SimpleCallback<void>,
|
|
206
|
+
) => import("../../coroutines/state").Coroutine<
|
|
207
|
+
InfiniteStreamWritableState<Element>,
|
|
208
|
+
InfiniteStreamWritableState<Element>,
|
|
209
|
+
import("../../../main").Unit
|
|
210
|
+
>;
|
|
29
211
|
};
|
|
30
|
-
//# sourceMappingURL=builder.d.ts.map
|
|
212
|
+
//# sourceMappingURL=builder.d.ts.map
|
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
import { Coroutine } from "../../coroutines/state";
|
|
2
2
|
import { Unit } from "../../fun/domains/unit/state";
|
|
3
3
|
import { InfiniteStreamWritableState } from "../state";
|
|
4
|
-
export declare const InfiniteStreamLoader: <
|
|
4
|
+
export declare const InfiniteStreamLoader: <
|
|
5
|
+
Element extends {
|
|
5
6
|
Id: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
7
|
+
},
|
|
8
|
+
>(
|
|
9
|
+
maxRetries?: number,
|
|
10
|
+
) => Coroutine<
|
|
11
|
+
InfiniteStreamWritableState<Element>,
|
|
12
|
+
InfiniteStreamWritableState<Element>,
|
|
13
|
+
Unit
|
|
14
|
+
>;
|
|
15
|
+
export declare const Loader: <
|
|
16
|
+
Element extends {
|
|
8
17
|
Id: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
18
|
+
},
|
|
19
|
+
>(
|
|
20
|
+
maxRetries?: number,
|
|
21
|
+
) => Coroutine<
|
|
22
|
+
InfiniteStreamWritableState<Element>,
|
|
23
|
+
InfiniteStreamWritableState<Element>,
|
|
24
|
+
Unit
|
|
25
|
+
>;
|
|
26
|
+
//# sourceMappingURL=infiniteLoader.d.ts.map
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { InfiniteStreamWritableState } from "../state";
|
|
2
|
-
export declare const StreamDataLoader: <
|
|
2
|
+
export declare const StreamDataLoader: <
|
|
3
|
+
Element extends {
|
|
3
4
|
Id: string;
|
|
4
|
-
},
|
|
5
|
-
|
|
5
|
+
},
|
|
6
|
+
foreignMutations,
|
|
7
|
+
>() => import("../../template/state").Template<
|
|
8
|
+
InfiniteStreamWritableState<Element>,
|
|
9
|
+
InfiniteStreamWritableState<Element>,
|
|
10
|
+
foreignMutations,
|
|
11
|
+
import("../../../main").Unit
|
|
12
|
+
>;
|
|
13
|
+
//# sourceMappingURL=runner.d.ts.map
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { Unit } from "../fun/domains/unit/state";
|
|
2
2
|
import { Template } from "../template/state";
|
|
3
3
|
import { InfiniteStreamWritableState } from "./state";
|
|
4
|
-
export declare const InfiniteStreamTemplate: <
|
|
4
|
+
export declare const InfiniteStreamTemplate: <
|
|
5
|
+
Element extends {
|
|
5
6
|
Id: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
7
|
+
},
|
|
8
|
+
>() => Template<
|
|
9
|
+
InfiniteStreamWritableState<Element>,
|
|
10
|
+
InfiniteStreamWritableState<Element>,
|
|
11
|
+
Unit,
|
|
12
|
+
Unit
|
|
13
|
+
>;
|
|
14
|
+
//# sourceMappingURL=template.d.ts.map
|
package/bin/src/queue/state.d.ts
CHANGED
|
@@ -2,10 +2,26 @@ import { OrderedMap } from "immutable";
|
|
|
2
2
|
import { Guid, Unit, SynchronizationResult } from "../../main";
|
|
3
3
|
import { Coroutine } from "../coroutines/state";
|
|
4
4
|
import { BasicFun } from "../fun/state";
|
|
5
|
-
export declare const QueueCoroutine: <
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
export declare const QueueCoroutine: <
|
|
6
|
+
Context,
|
|
7
|
+
State,
|
|
8
|
+
OperationResult = SynchronizationResult,
|
|
9
|
+
>(
|
|
10
|
+
removeItem: BasicFun<Guid, Coroutine<Context & State, State, Unit>>,
|
|
11
|
+
getItemsToProcess: BasicFun<
|
|
12
|
+
Context & State,
|
|
13
|
+
OrderedMap<
|
|
14
|
+
Guid,
|
|
15
|
+
{
|
|
16
|
+
preprocess: Coroutine<Context & State, State, Unit>;
|
|
17
|
+
operation: Coroutine<Context & State, State, OperationResult>;
|
|
18
|
+
postprocess: BasicFun<
|
|
19
|
+
OperationResult,
|
|
20
|
+
Coroutine<Context & State, State, Unit>
|
|
21
|
+
>;
|
|
22
|
+
reenqueue: Coroutine<Context & State, State, Unit>;
|
|
23
|
+
}
|
|
24
|
+
>
|
|
25
|
+
>,
|
|
26
|
+
) => Coroutine<Context & State, State, Unit>;
|
|
27
|
+
//# sourceMappingURL=state.d.ts.map
|
|
@@ -1,60 +1,168 @@
|
|
|
1
1
|
import { BasicFun } from "../fun/state";
|
|
2
2
|
import { BasicUpdater } from "../fun/domains/updater/state";
|
|
3
3
|
import { Unit } from "../../main";
|
|
4
|
-
export type View<context, state, foreignMutations, embeddedChildren = Unit> = (
|
|
4
|
+
export type View<context, state, foreignMutations, embeddedChildren = Unit> = (
|
|
5
|
+
props: HeadlessTemplateProps<context, state, foreignMutations> &
|
|
6
|
+
embeddedChildren,
|
|
7
|
+
) => JSX.Element;
|
|
5
8
|
export type HeadlessTemplateProps<context, state, foreignMutations> = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
context: context;
|
|
10
|
+
setState: BasicFun<BasicUpdater<state>, void>;
|
|
11
|
+
foreignMutations: foreignMutations;
|
|
9
12
|
};
|
|
10
13
|
export type TemplateChildren = JSX.Element | JSX.Element[];
|
|
11
|
-
export type Wrapper = BasicFun<
|
|
14
|
+
export type Wrapper = BasicFun<
|
|
15
|
+
{
|
|
12
16
|
children?: TemplateChildren;
|
|
13
|
-
},
|
|
17
|
+
},
|
|
18
|
+
JSX.Element
|
|
19
|
+
>;
|
|
14
20
|
export type TemplateProps<context, state, foreignMutations, view = Unit> = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
context: context;
|
|
22
|
+
setState: BasicFun<BasicUpdater<state>, void>;
|
|
23
|
+
foreignMutations: foreignMutations;
|
|
24
|
+
view: view;
|
|
25
|
+
children?: TemplateChildren;
|
|
20
26
|
};
|
|
21
|
-
type TemplateRunner<context, state, foreignMutations, view = Unit> = (
|
|
27
|
+
type TemplateRunner<context, state, foreignMutations, view = Unit> = (
|
|
28
|
+
props: TemplateProps<context, state, foreignMutations, view>,
|
|
29
|
+
) => JSX.Element;
|
|
22
30
|
export type Template<context, state, foreignMutations, view = Unit> = {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
any: BasicFun<
|
|
32
|
+
Array<Template<context, state, foreignMutations>>,
|
|
33
|
+
Template<context, state, foreignMutations, view>
|
|
34
|
+
>;
|
|
35
|
+
wrap: (Wrapper: Wrapper) => Template<context, state, foreignMutations, view>;
|
|
36
|
+
withView: (view: view) => Template<context, state, foreignMutations, Unit>;
|
|
37
|
+
withViewFromProps: (
|
|
38
|
+
f: BasicFun<TemplateProps<context, state, foreignMutations, Unit>, view>,
|
|
39
|
+
) => Template<context, state, foreignMutations, Unit>;
|
|
40
|
+
mapState: <newState>(
|
|
41
|
+
f: BasicFun<BasicUpdater<state>, BasicUpdater<newState>>,
|
|
42
|
+
) => Template<context, newState, foreignMutations, view>;
|
|
43
|
+
mapStateFromProps: <newState>(
|
|
44
|
+
f: BasicFun<
|
|
45
|
+
[
|
|
29
46
|
TemplateProps<context, newState, foreignMutations, view>,
|
|
30
|
-
BasicUpdater<state
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
47
|
+
BasicUpdater<state>,
|
|
48
|
+
],
|
|
49
|
+
BasicUpdater<newState>
|
|
50
|
+
>,
|
|
51
|
+
) => Template<context, newState, foreignMutations, view>;
|
|
52
|
+
mapContext: <newContext>(
|
|
53
|
+
f: BasicFun<newContext, context | undefined>,
|
|
54
|
+
) => Template<newContext, state, foreignMutations, view>;
|
|
55
|
+
mapForeignMutations: <newForeignMutations>(
|
|
56
|
+
f: BasicFun<newForeignMutations, foreignMutations>,
|
|
57
|
+
) => Template<context, state, newForeignMutations, view>;
|
|
58
|
+
mapContextFromProps: <newContext>(
|
|
59
|
+
f: BasicFun<
|
|
60
|
+
TemplateProps<newContext, state, foreignMutations, view>,
|
|
61
|
+
context | undefined
|
|
62
|
+
>,
|
|
63
|
+
) => Template<newContext, state, foreignMutations, view>;
|
|
64
|
+
mapForeignMutationsFromProps: <newForeignMutations>(
|
|
65
|
+
f: BasicFun<
|
|
66
|
+
TemplateProps<context, state, newForeignMutations, view>,
|
|
67
|
+
foreignMutations
|
|
68
|
+
>,
|
|
69
|
+
) => Template<context, state, newForeignMutations, view>;
|
|
70
|
+
mapView: <newView>(
|
|
71
|
+
f: BasicFun<newView, view>,
|
|
72
|
+
) => Template<context, state, foreignMutations, newView>;
|
|
73
|
+
mapViewFromProps: <newView>(
|
|
74
|
+
f: BasicFun<TemplateProps<context, state, foreignMutations, newView>, view>,
|
|
75
|
+
) => Template<context, state, foreignMutations, newView>;
|
|
38
76
|
} & TemplateRunner<context, state, foreignMutations, view>;
|
|
39
|
-
export declare const createTemplate: <context, state, foreignMutations, view>(
|
|
77
|
+
export declare const createTemplate: <context, state, foreignMutations, view>(
|
|
78
|
+
actual: TemplateRunner<context, state, foreignMutations, view>,
|
|
79
|
+
) => Template<context, state, foreignMutations, view>;
|
|
40
80
|
export declare const Template: {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
81
|
+
Default: <context, state, foreignMutations, view = Unit>(
|
|
82
|
+
actual: TemplateRunner<context & state, state, foreignMutations, view>,
|
|
83
|
+
) => Template<context & state, state, foreignMutations, view>;
|
|
84
|
+
Operations: {
|
|
85
|
+
Wrap: <context, state, foreignMutations, view>(
|
|
86
|
+
p: Template<context, state, foreignMutations, view>,
|
|
87
|
+
Wrapper: BasicFun<
|
|
88
|
+
{
|
|
89
|
+
children?: TemplateChildren;
|
|
90
|
+
},
|
|
91
|
+
JSX.Element
|
|
92
|
+
>,
|
|
93
|
+
) => Template<context, state, foreignMutations, view>;
|
|
94
|
+
WithView: <context, state, foreignMutations, view>(
|
|
95
|
+
p: Template<context, state, foreignMutations, view>,
|
|
96
|
+
view: view,
|
|
97
|
+
) => Template<context, state, foreignMutations, Unit>;
|
|
98
|
+
WithViewFromProps: <context, state, foreignMutations, view>(
|
|
99
|
+
p: Template<context, state, foreignMutations, view>,
|
|
100
|
+
f: BasicFun<TemplateProps<context, state, foreignMutations, Unit>, view>,
|
|
101
|
+
) => Template<context, state, foreignMutations, Unit>;
|
|
102
|
+
MapState: <context, state, newState, foreignMutations, view>(
|
|
103
|
+
p: Template<context, state, foreignMutations, view>,
|
|
104
|
+
f: BasicFun<BasicUpdater<state>, BasicUpdater<newState>>,
|
|
105
|
+
) => Template<context, newState, foreignMutations, view>;
|
|
106
|
+
MapStateFromProps: <context, state, newState, foreignMutations, view>(
|
|
107
|
+
p: Template<context, state, foreignMutations, view>,
|
|
108
|
+
f: BasicFun<
|
|
109
|
+
[
|
|
110
|
+
TemplateProps<context, newState, foreignMutations, view>,
|
|
111
|
+
BasicUpdater<state>,
|
|
112
|
+
],
|
|
113
|
+
BasicUpdater<newState>
|
|
114
|
+
>,
|
|
115
|
+
) => Template<context, newState, foreignMutations, view>;
|
|
116
|
+
MapContext: <context, newContext, state, foreignMutations, view>(
|
|
117
|
+
p: Template<context, state, foreignMutations, view>,
|
|
118
|
+
f: BasicFun<newContext, context | undefined>,
|
|
119
|
+
) => Template<newContext, state, foreignMutations, view>;
|
|
120
|
+
MapForeignMutations: <
|
|
121
|
+
context,
|
|
122
|
+
state,
|
|
123
|
+
foreignMutations,
|
|
124
|
+
newForeignMutations,
|
|
125
|
+
view,
|
|
126
|
+
>(
|
|
127
|
+
p: Template<context, state, foreignMutations, view>,
|
|
128
|
+
f: BasicFun<newForeignMutations, foreignMutations>,
|
|
129
|
+
) => Template<context, state, newForeignMutations, view>;
|
|
130
|
+
MapContextFromProps: <context, newContext, state, foreignMutations, view>(
|
|
131
|
+
p: Template<context, state, foreignMutations, view>,
|
|
132
|
+
f: BasicFun<
|
|
133
|
+
TemplateProps<newContext, state, foreignMutations, view>,
|
|
134
|
+
context | undefined
|
|
135
|
+
>,
|
|
136
|
+
) => Template<newContext, state, foreignMutations, view>;
|
|
137
|
+
MapForeignMutationsFromProps: <
|
|
138
|
+
context,
|
|
139
|
+
state,
|
|
140
|
+
foreignMutations,
|
|
141
|
+
newForeignMutations,
|
|
142
|
+
view,
|
|
143
|
+
>(
|
|
144
|
+
p: Template<context, state, foreignMutations, view>,
|
|
145
|
+
f: BasicFun<
|
|
146
|
+
TemplateProps<context, state, newForeignMutations, view>,
|
|
147
|
+
foreignMutations
|
|
148
|
+
>,
|
|
149
|
+
) => Template<context, state, newForeignMutations, view>;
|
|
150
|
+
Any: <context, state, foreignMutations, view>(
|
|
151
|
+
p: Template<context, state, foreignMutations, view>,
|
|
152
|
+
others: Array<Template<context, state, foreignMutations>>,
|
|
153
|
+
) => Template<context, state, foreignMutations, view>;
|
|
154
|
+
MapView: <context, state, foreignMutations, newView, view>(
|
|
155
|
+
p: Template<context, state, foreignMutations, view>,
|
|
156
|
+
f: BasicFun<newView, view>,
|
|
157
|
+
) => Template<context, state, foreignMutations, newView>;
|
|
158
|
+
MapViewFromProps: <context, state, foreignMutations, newView, view>(
|
|
159
|
+
p: Template<context, state, foreignMutations, view>,
|
|
160
|
+
f: BasicFun<
|
|
161
|
+
TemplateProps<context, state, foreignMutations, newView>,
|
|
162
|
+
view
|
|
163
|
+
>,
|
|
164
|
+
) => Template<context, state, foreignMutations, newView>;
|
|
165
|
+
};
|
|
58
166
|
};
|
|
59
167
|
export {};
|
|
60
|
-
//# sourceMappingURL=state.d.ts.map
|
|
168
|
+
//# sourceMappingURL=state.d.ts.map
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
import { BasicFun, Unit, Option } from "../../main";
|
|
2
|
-
export type ValidationResult =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
export type ValidationResult =
|
|
3
|
+
| "valid"
|
|
4
|
+
| {
|
|
5
|
+
kind: "error";
|
|
6
|
+
errors: Array<string>;
|
|
7
|
+
};
|
|
8
|
+
export type TypeDescriptor<T> = T extends Date
|
|
9
|
+
? "date"
|
|
10
|
+
: T extends number
|
|
11
|
+
? "number"
|
|
12
|
+
: T extends boolean
|
|
13
|
+
? "boolean"
|
|
14
|
+
: T extends string
|
|
15
|
+
? "string"
|
|
16
|
+
: T extends Unit
|
|
17
|
+
? {} & {
|
|
18
|
+
[_ in keyof T]: TypeDescriptor<T[_]>;
|
|
19
|
+
}
|
|
20
|
+
: never;
|
|
21
|
+
export declare const parse: <E>(
|
|
22
|
+
entityDescriptor: TypeDescriptor<E>,
|
|
23
|
+
) => BasicFun<any, Option<E>>;
|
|
24
|
+
//# sourceMappingURL=state.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SimpleCallback } from "ballerina-core";
|
|
2
2
|
import { Value } from "../../state";
|
|
3
3
|
export type MutableValue<v> = Value<v> & {
|
|
4
|
-
|
|
4
|
+
onChange: SimpleCallback<v>;
|
|
5
5
|
};
|
|
6
6
|
export declare const MutableValue: {
|
|
7
|
-
|
|
7
|
+
Default: <v>(v: v, onChange: SimpleCallback<v>) => MutableValue<v>;
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=state.d.ts.map
|
|
9
|
+
//# sourceMappingURL=state.d.ts.map
|