jssm 5.162.1 → 5.162.2
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/README.md +3 -3
- package/dist/cdn/instance.js +1 -1
- package/dist/cdn/viz.js +1 -1
- package/dist/cli/fsl-export-system-prompt.cjs +1 -1
- package/dist/cli/fsl-render.cjs +1 -1
- package/dist/cli/fsl.cjs +1 -1
- package/dist/cli/lib.cjs +1 -1
- package/dist/cli/lib.mjs +1 -1
- package/dist/deno/README.md +3 -3
- package/dist/deno/jssm.d.ts +46 -46
- package/dist/deno/jssm.js +1 -1
- package/dist/deno/jssm_compiler.d.ts +4 -4
- package/dist/deno/jssm_types.d.ts +4 -4
- package/dist/fence/fence.js +48 -48
- package/dist/jssm.es5.cjs +1 -1
- package/dist/jssm.es5.iife.js +1 -1
- package/dist/jssm.es6.mjs +1 -1
- package/dist/jssm_viz.cjs +1 -1
- package/dist/jssm_viz.iife.cjs +1 -1
- package/dist/jssm_viz.mjs +1 -1
- package/jssm.es5.d.cts +52 -52
- package/jssm.es6.d.ts +52 -52
- package/jssm.fence.d.ts +43 -43
- package/jssm_viz.es5.d.cts +43 -43
- package/jssm_viz.es6.d.ts +43 -43
- package/package.json +1 -1
|
@@ -25,8 +25,8 @@ declare function nth_matching_loc<StateType, mDT>(tree: JssmParseTree<StateType,
|
|
|
25
25
|
*
|
|
26
26
|
* @internal
|
|
27
27
|
*
|
|
28
|
-
* @
|
|
29
|
-
* @
|
|
28
|
+
* @typeParam StateType The type of state names (usually `string`).
|
|
29
|
+
* @typeParam mDT The type of the machine data member; usually omitted.
|
|
30
30
|
*
|
|
31
31
|
* @param this_se - The parsed semi-edge containing kind, action, and
|
|
32
32
|
* probability metadata.
|
|
@@ -329,7 +329,7 @@ declare function membership_distance(registry: JssmGroupRegistry, state: string,
|
|
|
329
329
|
* const toggle = jssm.from('up <=> down;');
|
|
330
330
|
* ```
|
|
331
331
|
*
|
|
332
|
-
* @
|
|
332
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
333
333
|
*
|
|
334
334
|
* @param tree The parse tree to be boiled down into a machine config. If the
|
|
335
335
|
* tree was produced with `parse(input, { locations: true })`, any
|
|
@@ -350,7 +350,7 @@ declare function compile<StateType, mDT>(tree: JssmParseTree<StateType, mDT>): J
|
|
|
350
350
|
* Not generally meant for external use. Please see {@link compile} or
|
|
351
351
|
* {@link sm}.
|
|
352
352
|
*
|
|
353
|
-
* @
|
|
353
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
354
354
|
*
|
|
355
355
|
* @param plan The FSL code to be evaluated and built into a machine config
|
|
356
356
|
*
|
|
@@ -1323,15 +1323,15 @@ type JssmEventFilterMap<mDT> = {
|
|
|
1323
1323
|
/**
|
|
1324
1324
|
* Per-event filter object (as passed to {@link Machine.on}). Use
|
|
1325
1325
|
* `JssmEventDetailMap<mDT>[Ev]` to find the matching detail type.
|
|
1326
|
-
* @
|
|
1327
|
-
* @
|
|
1326
|
+
* @typeParam mDT The type of the machine data member.
|
|
1327
|
+
* @typeParam Ev The event name.
|
|
1328
1328
|
*/
|
|
1329
1329
|
type JssmEventFilter<mDT, Ev extends JssmEventName> = JssmEventFilterMap<mDT>[Ev];
|
|
1330
1330
|
/**
|
|
1331
1331
|
* Per-event handler signature. Receives a detail object typed by event
|
|
1332
1332
|
* name, so `e.action` (etc.) only exist where they're meaningful.
|
|
1333
|
-
* @
|
|
1334
|
-
* @
|
|
1333
|
+
* @typeParam mDT The type of the machine data member.
|
|
1334
|
+
* @typeParam Ev The event name.
|
|
1335
1335
|
*/
|
|
1336
1336
|
type JssmEventHandler<mDT, Ev extends JssmEventName> = (detail: JssmEventDetailMap<mDT>[Ev]) => void;
|
|
1337
1337
|
/**
|
package/dist/fence/fence.js
CHANGED
|
@@ -21894,8 +21894,8 @@ function nth_matching_loc(tree, predicate, n) {
|
|
|
21894
21894
|
*
|
|
21895
21895
|
* @internal
|
|
21896
21896
|
*
|
|
21897
|
-
* @
|
|
21898
|
-
* @
|
|
21897
|
+
* @typeParam StateType The type of state names (usually `string`).
|
|
21898
|
+
* @typeParam mDT The type of the machine data member; usually omitted.
|
|
21899
21899
|
*
|
|
21900
21900
|
* @param this_se - The parsed semi-edge containing kind, action, and
|
|
21901
21901
|
* probability metadata.
|
|
@@ -22544,7 +22544,7 @@ function resolve_group_refs(tree, registry) {
|
|
|
22544
22544
|
*
|
|
22545
22545
|
* @internal
|
|
22546
22546
|
*
|
|
22547
|
-
* @
|
|
22547
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
22548
22548
|
*
|
|
22549
22549
|
*/
|
|
22550
22550
|
function compile_rule_transition_step(acc, from, to, this_se, next_se) {
|
|
@@ -22832,7 +22832,7 @@ function fold_graph_config(aliases, explicit_block) {
|
|
|
22832
22832
|
* const toggle = jssm.from('up <=> down;');
|
|
22833
22833
|
* ```
|
|
22834
22834
|
*
|
|
22835
|
-
* @
|
|
22835
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
22836
22836
|
*
|
|
22837
22837
|
* @param tree The parse tree to be boiled down into a machine config. If the
|
|
22838
22838
|
* tree was produced with `parse(input, { locations: true })`, any
|
|
@@ -23070,7 +23070,7 @@ function compile(tree) {
|
|
|
23070
23070
|
* Not generally meant for external use. Please see {@link compile} or
|
|
23071
23071
|
* {@link sm}.
|
|
23072
23072
|
*
|
|
23073
|
-
* @
|
|
23073
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
23074
23074
|
*
|
|
23075
23075
|
* @param plan The FSL code to be evaluated and built into a machine config
|
|
23076
23076
|
*
|
|
@@ -23790,7 +23790,7 @@ function fslSemanticSpans(text) {
|
|
|
23790
23790
|
* Useful for runtime diagnostics and for embedding in serialized machine
|
|
23791
23791
|
* snapshots so that deserializers can detect version-skew.
|
|
23792
23792
|
*/
|
|
23793
|
-
const version = "5.162.
|
|
23793
|
+
const version = "5.162.2";
|
|
23794
23794
|
|
|
23795
23795
|
/**
|
|
23796
23796
|
* The FSL Markdown fence convention parser — pure, host-agnostic logic that
|
|
@@ -24210,7 +24210,7 @@ function merge_state_config(base, over) {
|
|
|
24210
24210
|
* light.state(); // 'Green'
|
|
24211
24211
|
* ```
|
|
24212
24212
|
*
|
|
24213
|
-
* @
|
|
24213
|
+
* @typeParam mDT The machine data type — the type of the value stored in
|
|
24214
24214
|
* `.data()`. Defaults to `undefined` when no data is used.
|
|
24215
24215
|
*
|
|
24216
24216
|
*/
|
|
@@ -24771,7 +24771,7 @@ class Machine {
|
|
|
24771
24771
|
* console.log( lswitch.state() ); // 'off'
|
|
24772
24772
|
* ```
|
|
24773
24773
|
*
|
|
24774
|
-
* @
|
|
24774
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
24775
24775
|
*
|
|
24776
24776
|
* @returns The current state name.
|
|
24777
24777
|
*
|
|
@@ -24793,7 +24793,7 @@ class Machine {
|
|
|
24793
24793
|
*
|
|
24794
24794
|
* See also {@link display_text}.
|
|
24795
24795
|
*
|
|
24796
|
-
* @
|
|
24796
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
24797
24797
|
*
|
|
24798
24798
|
* @param state The state to get the label for.
|
|
24799
24799
|
*
|
|
@@ -24822,7 +24822,7 @@ class Machine {
|
|
|
24822
24822
|
* console.log( lswitch.display_text('b') ); // 'b'
|
|
24823
24823
|
* ```
|
|
24824
24824
|
*
|
|
24825
|
-
* @
|
|
24825
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
24826
24826
|
*
|
|
24827
24827
|
* @param state The state to get display text for.
|
|
24828
24828
|
*
|
|
@@ -24844,7 +24844,7 @@ class Machine {
|
|
|
24844
24844
|
* console.log( lswitch.data() ); // 1
|
|
24845
24845
|
* ```
|
|
24846
24846
|
*
|
|
24847
|
-
* @
|
|
24847
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
24848
24848
|
*
|
|
24849
24849
|
* @returns A deep clone of the machine's current data value.
|
|
24850
24850
|
*
|
|
@@ -25046,7 +25046,7 @@ class Machine {
|
|
|
25046
25046
|
* console.log( final_test.is_start_state('b') ); // true
|
|
25047
25047
|
* ```
|
|
25048
25048
|
*
|
|
25049
|
-
* @
|
|
25049
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
25050
25050
|
*
|
|
25051
25051
|
* @param whichState The name of the state to check
|
|
25052
25052
|
*
|
|
@@ -25073,7 +25073,7 @@ class Machine {
|
|
|
25073
25073
|
* console.log( final_test.is_start_state('b') ); // true
|
|
25074
25074
|
* ```
|
|
25075
25075
|
*
|
|
25076
|
-
* @
|
|
25076
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
25077
25077
|
*
|
|
25078
25078
|
* @param whichState The name of the state to check
|
|
25079
25079
|
*
|
|
@@ -25134,7 +25134,7 @@ class Machine {
|
|
|
25134
25134
|
* console.log( final_test.state_is_final('second') ); // true
|
|
25135
25135
|
* ```
|
|
25136
25136
|
*
|
|
25137
|
-
* @
|
|
25137
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
25138
25138
|
*
|
|
25139
25139
|
* @param whichState The name of the state to check for finality
|
|
25140
25140
|
*
|
|
@@ -25169,7 +25169,7 @@ class Machine {
|
|
|
25169
25169
|
* string to recreate (to not waste repeated space;) if you want the machine
|
|
25170
25170
|
* string embedded, call {@link serialize_with_string} instead.
|
|
25171
25171
|
*
|
|
25172
|
-
* @
|
|
25172
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
25173
25173
|
*
|
|
25174
25174
|
* @param comment An optional comment string to embed in the serialized
|
|
25175
25175
|
* output for identification or debugging.
|
|
@@ -25389,7 +25389,7 @@ class Machine {
|
|
|
25389
25389
|
* console.log( lswitch.states() ); // ['on', 'off']
|
|
25390
25390
|
* ```
|
|
25391
25391
|
*
|
|
25392
|
-
* @
|
|
25392
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
25393
25393
|
*
|
|
25394
25394
|
* @returns An array of all state names in the machine.
|
|
25395
25395
|
*
|
|
@@ -25424,7 +25424,7 @@ class Machine {
|
|
|
25424
25424
|
* console.log( lswitch.has_state('dance') ); // false
|
|
25425
25425
|
* ```
|
|
25426
25426
|
*
|
|
25427
|
-
* @
|
|
25427
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
25428
25428
|
*
|
|
25429
25429
|
* @param whichState The state to be checked for existence.
|
|
25430
25430
|
*
|
|
@@ -25464,7 +25464,7 @@ class Machine {
|
|
|
25464
25464
|
* ]
|
|
25465
25465
|
* ```
|
|
25466
25466
|
*
|
|
25467
|
-
* @
|
|
25467
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
25468
25468
|
*
|
|
25469
25469
|
* @returns An array of all {@link JssmTransition} edge objects.
|
|
25470
25470
|
*
|
|
@@ -25681,7 +25681,7 @@ class Machine {
|
|
|
25681
25681
|
* light.list_transitions(); // { entrances: [ 'yellow', 'off' ], exits: [ 'green', 'off' ] }
|
|
25682
25682
|
* ```
|
|
25683
25683
|
*
|
|
25684
|
-
* @
|
|
25684
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
25685
25685
|
*
|
|
25686
25686
|
* @param whichState The state whose transitions to have listed
|
|
25687
25687
|
*
|
|
@@ -25706,7 +25706,7 @@ class Machine {
|
|
|
25706
25706
|
* light.list_entrances(); // [ 'yellow', 'off' ]
|
|
25707
25707
|
* ```
|
|
25708
25708
|
*
|
|
25709
|
-
* @
|
|
25709
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
25710
25710
|
*
|
|
25711
25711
|
* @param whichState The state whose entrances to have listed
|
|
25712
25712
|
*
|
|
@@ -25732,7 +25732,7 @@ class Machine {
|
|
|
25732
25732
|
* light.list_exits(); // [ 'green', 'off' ]
|
|
25733
25733
|
* ```
|
|
25734
25734
|
*
|
|
25735
|
-
* @
|
|
25735
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
25736
25736
|
*
|
|
25737
25737
|
* @param whichState The state whose exits to have listed
|
|
25738
25738
|
*
|
|
@@ -26012,7 +26012,7 @@ class Machine {
|
|
|
26012
26012
|
* console.log( machine.actions() ); // logs ['next', 'shutdown']
|
|
26013
26013
|
* ```
|
|
26014
26014
|
*
|
|
26015
|
-
* @
|
|
26015
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
26016
26016
|
*
|
|
26017
26017
|
* @param whichState The state whose actions to list. Defaults to the
|
|
26018
26018
|
* current state.
|
|
@@ -26051,7 +26051,7 @@ class Machine {
|
|
|
26051
26051
|
* console.log( machine.list_states_having_action('start') ); // ['off']
|
|
26052
26052
|
* ```
|
|
26053
26053
|
*
|
|
26054
|
-
* @
|
|
26054
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
26055
26055
|
*
|
|
26056
26056
|
* @param whichState The action to be checked for associated states
|
|
26057
26057
|
*
|
|
@@ -26187,7 +26187,7 @@ class Machine {
|
|
|
26187
26187
|
* m.isIn('nonesuch'); // false — undeclared group has no members
|
|
26188
26188
|
* ```
|
|
26189
26189
|
*
|
|
26190
|
-
* @
|
|
26190
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
26191
26191
|
*
|
|
26192
26192
|
* @param groupName The group to test the current state against.
|
|
26193
26193
|
*
|
|
@@ -26217,7 +26217,7 @@ class Machine {
|
|
|
26217
26217
|
* m.groupsOf('z'); // Set {} — not in any group
|
|
26218
26218
|
* ```
|
|
26219
26219
|
*
|
|
26220
|
-
* @
|
|
26220
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
26221
26221
|
*
|
|
26222
26222
|
* @param state The state whose containing groups are wanted.
|
|
26223
26223
|
*
|
|
@@ -26246,7 +26246,7 @@ class Machine {
|
|
|
26246
26246
|
* m.groups(); // [ 'first', 'second' ]
|
|
26247
26247
|
* ```
|
|
26248
26248
|
*
|
|
26249
|
-
* @
|
|
26249
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
26250
26250
|
*
|
|
26251
26251
|
* @returns The declared group names, in declaration order.
|
|
26252
26252
|
*
|
|
@@ -26271,7 +26271,7 @@ class Machine {
|
|
|
26271
26271
|
* m.statesIn('inner'); // [ 'a', 'b' ]
|
|
26272
26272
|
* ```
|
|
26273
26273
|
*
|
|
26274
|
-
* @
|
|
26274
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
26275
26275
|
*
|
|
26276
26276
|
* @param groupName The group whose transitive member states are wanted.
|
|
26277
26277
|
*
|
|
@@ -27466,7 +27466,7 @@ class Machine {
|
|
|
27466
27466
|
* - When multiple edges exist between two states with different `kind`
|
|
27467
27467
|
* values, only the first edge's kind is used to pick the edge-type hook.
|
|
27468
27468
|
*
|
|
27469
|
-
* @
|
|
27469
|
+
* @typeParam mDT The type of the machine data member; usually omitted.
|
|
27470
27470
|
*
|
|
27471
27471
|
* @param newStateOrAction The target state name (for a plain or forced
|
|
27472
27472
|
* transition) or the action name (when `wasAction` is true).
|
|
@@ -27990,7 +27990,7 @@ class Machine {
|
|
|
27990
27990
|
*
|
|
27991
27991
|
* Notice that the machine's current state, `e`, is not in the returned list.
|
|
27992
27992
|
*
|
|
27993
|
-
* @
|
|
27993
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
27994
27994
|
*
|
|
27995
27995
|
*/
|
|
27996
27996
|
get history() {
|
|
@@ -28025,7 +28025,7 @@ class Machine {
|
|
|
28025
28025
|
*
|
|
28026
28026
|
* Notice that the machine's current state, `e`, is in the returned list.
|
|
28027
28027
|
*
|
|
28028
|
-
* @
|
|
28028
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
28029
28029
|
*
|
|
28030
28030
|
*/
|
|
28031
28031
|
get history_inclusive() {
|
|
@@ -28048,7 +28048,7 @@ class Machine {
|
|
|
28048
28048
|
* foo.history_length; // 5
|
|
28049
28049
|
* ```
|
|
28050
28050
|
*
|
|
28051
|
-
* @
|
|
28051
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
28052
28052
|
*
|
|
28053
28053
|
*/
|
|
28054
28054
|
get history_length() {
|
|
@@ -28070,7 +28070,7 @@ class Machine {
|
|
|
28070
28070
|
* light.state(); // 'green'
|
|
28071
28071
|
* ```
|
|
28072
28072
|
*
|
|
28073
|
-
* @
|
|
28073
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
28074
28074
|
*
|
|
28075
28075
|
* @param actionName The action to engage
|
|
28076
28076
|
*
|
|
@@ -28099,7 +28099,7 @@ class Machine {
|
|
|
28099
28099
|
* // { shape: 'circle' }
|
|
28100
28100
|
* ```
|
|
28101
28101
|
*
|
|
28102
|
-
* @
|
|
28102
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
28103
28103
|
*
|
|
28104
28104
|
* @returns The {@link JssmStateConfig} for standard states.
|
|
28105
28105
|
*
|
|
@@ -28127,7 +28127,7 @@ class Machine {
|
|
|
28127
28127
|
* // { shape: 'circle' }
|
|
28128
28128
|
* ```
|
|
28129
28129
|
*
|
|
28130
|
-
* @
|
|
28130
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
28131
28131
|
*
|
|
28132
28132
|
* @returns The {@link JssmStateConfig} for hooked states.
|
|
28133
28133
|
*
|
|
@@ -28154,7 +28154,7 @@ class Machine {
|
|
|
28154
28154
|
* // { shape: 'circle' }
|
|
28155
28155
|
* ```
|
|
28156
28156
|
*
|
|
28157
|
-
* @
|
|
28157
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
28158
28158
|
*
|
|
28159
28159
|
* @returns The {@link JssmStateConfig} for start states.
|
|
28160
28160
|
*
|
|
@@ -28186,7 +28186,7 @@ class Machine {
|
|
|
28186
28186
|
* // { shape: 'circle' }
|
|
28187
28187
|
* ```
|
|
28188
28188
|
*
|
|
28189
|
-
* @
|
|
28189
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
28190
28190
|
*
|
|
28191
28191
|
* @returns The {@link JssmStateConfig} for end states.
|
|
28192
28192
|
*
|
|
@@ -28213,7 +28213,7 @@ class Machine {
|
|
|
28213
28213
|
* // { shape: 'circle' }
|
|
28214
28214
|
* ```
|
|
28215
28215
|
*
|
|
28216
|
-
* @
|
|
28216
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
28217
28217
|
*
|
|
28218
28218
|
* @returns The {@link JssmStateConfig} for terminal states.
|
|
28219
28219
|
*
|
|
@@ -28237,7 +28237,7 @@ class Machine {
|
|
|
28237
28237
|
* // { shape: 'circle' }
|
|
28238
28238
|
* ```
|
|
28239
28239
|
*
|
|
28240
|
-
* @
|
|
28240
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
28241
28241
|
*
|
|
28242
28242
|
* @returns The {@link JssmStateConfig} for the active state.
|
|
28243
28243
|
*
|
|
@@ -28773,7 +28773,7 @@ class Machine {
|
|
|
28773
28773
|
* m.resolve_state_config('working').color; // '#ffa500ff' — from group &busy
|
|
28774
28774
|
* ```
|
|
28775
28775
|
*
|
|
28776
|
-
* @
|
|
28776
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
28777
28777
|
*
|
|
28778
28778
|
* @param state The state to compute the composite config for.
|
|
28779
28779
|
*
|
|
@@ -28812,7 +28812,7 @@ class Machine {
|
|
|
28812
28812
|
* winning over outer), then the per-state config, and finally — for the
|
|
28813
28813
|
* current state only — the active overlay. Last wins at every tier.
|
|
28814
28814
|
*
|
|
28815
|
-
* @
|
|
28815
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
28816
28816
|
*
|
|
28817
28817
|
* @param state The state to compute the composite style for.
|
|
28818
28818
|
*
|
|
@@ -28848,7 +28848,7 @@ class Machine {
|
|
|
28848
28848
|
* light.state(); // 'yellow'
|
|
28849
28849
|
* ```
|
|
28850
28850
|
*
|
|
28851
|
-
* @
|
|
28851
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
28852
28852
|
*
|
|
28853
28853
|
* @param actionName The action to engage
|
|
28854
28854
|
*
|
|
@@ -28883,7 +28883,7 @@ class Machine {
|
|
|
28883
28883
|
* light.state(); // 'green'
|
|
28884
28884
|
* ```
|
|
28885
28885
|
*
|
|
28886
|
-
* @
|
|
28886
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
28887
28887
|
*
|
|
28888
28888
|
* @param newState The state to switch to
|
|
28889
28889
|
*
|
|
@@ -28907,7 +28907,7 @@ class Machine {
|
|
|
28907
28907
|
* light.state(); // 'green'
|
|
28908
28908
|
* ```
|
|
28909
28909
|
*
|
|
28910
|
-
* @
|
|
28910
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
28911
28911
|
*
|
|
28912
28912
|
* @param newState The state to switch to
|
|
28913
28913
|
*
|
|
@@ -28934,7 +28934,7 @@ class Machine {
|
|
|
28934
28934
|
* light.state(); // 'off'
|
|
28935
28935
|
* ```
|
|
28936
28936
|
*
|
|
28937
|
-
* @
|
|
28937
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
28938
28938
|
*
|
|
28939
28939
|
* @param newState The state to switch to
|
|
28940
28940
|
*
|
|
@@ -29120,7 +29120,7 @@ class Machine {
|
|
|
29120
29120
|
* const lswitch = jssm.from('on <=> off;');
|
|
29121
29121
|
* ```
|
|
29122
29122
|
*
|
|
29123
|
-
* @
|
|
29123
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
29124
29124
|
*
|
|
29125
29125
|
* @param template_strings The assembled code
|
|
29126
29126
|
*
|
|
@@ -29158,7 +29158,7 @@ function sm(template_strings, ...remainder /* , arguments */) {
|
|
|
29158
29158
|
* is_hook_complex_result({ other: 'thing' }); // false
|
|
29159
29159
|
* ```
|
|
29160
29160
|
*
|
|
29161
|
-
* @
|
|
29161
|
+
* @typeParam mDT The type of the machine data member; usually omitted.
|
|
29162
29162
|
*
|
|
29163
29163
|
* @param hr The value to test.
|
|
29164
29164
|
*
|
|
@@ -29264,7 +29264,7 @@ const HOOK_REJECTED = Object.freeze({ pass: false }); // eslint-disable-line @ty
|
|
|
29264
29264
|
*
|
|
29265
29265
|
* Anything else is a programmer error and throws.
|
|
29266
29266
|
*
|
|
29267
|
-
* @
|
|
29267
|
+
* @typeParam mDT The type of the machine data member; usually omitted.
|
|
29268
29268
|
*
|
|
29269
29269
|
* @param maybe_hook The hook handler to call, or `undefined` for the
|
|
29270
29270
|
* "no hook installed" case.
|
|
@@ -29324,7 +29324,7 @@ function abstract_hook_step(maybe_hook, hook_args) {
|
|
|
29324
29324
|
* - `false` or `null` → `{ pass: false }`
|
|
29325
29325
|
* - a complex result → returned as-is
|
|
29326
29326
|
*
|
|
29327
|
-
* @
|
|
29327
|
+
* @typeParam mDT The type of the machine data member; usually omitted.
|
|
29328
29328
|
*
|
|
29329
29329
|
* @param maybe_hook The everything-hook handler, or `undefined` when none
|
|
29330
29330
|
* is installed.
|