jssm 5.162.0 → 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 +2 -2
- 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 +2 -2
- 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
package/jssm.es6.d.ts
CHANGED
|
@@ -1180,15 +1180,15 @@ type JssmEventFilterMap<mDT> = {
|
|
|
1180
1180
|
/**
|
|
1181
1181
|
* Per-event filter object (as passed to {@link Machine.on}). Use
|
|
1182
1182
|
* `JssmEventDetailMap<mDT>[Ev]` to find the matching detail type.
|
|
1183
|
-
* @
|
|
1184
|
-
* @
|
|
1183
|
+
* @typeParam mDT The type of the machine data member.
|
|
1184
|
+
* @typeParam Ev The event name.
|
|
1185
1185
|
*/
|
|
1186
1186
|
type JssmEventFilter<mDT, Ev extends JssmEventName> = JssmEventFilterMap<mDT>[Ev];
|
|
1187
1187
|
/**
|
|
1188
1188
|
* Per-event handler signature. Receives a detail object typed by event
|
|
1189
1189
|
* name, so `e.action` (etc.) only exist where they're meaningful.
|
|
1190
|
-
* @
|
|
1191
|
-
* @
|
|
1190
|
+
* @typeParam mDT The type of the machine data member.
|
|
1191
|
+
* @typeParam Ev The event name.
|
|
1192
1192
|
*/
|
|
1193
1193
|
type JssmEventHandler<mDT, Ev extends JssmEventName> = (detail: JssmEventDetailMap<mDT>[Ev]) => void;
|
|
1194
1194
|
/**
|
|
@@ -1408,7 +1408,7 @@ declare function wrap_parse(input: string, options?: Object): any;
|
|
|
1408
1408
|
* const toggle = jssm.from('up <=> down;');
|
|
1409
1409
|
* ```
|
|
1410
1410
|
*
|
|
1411
|
-
* @
|
|
1411
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
1412
1412
|
*
|
|
1413
1413
|
* @param tree The parse tree to be boiled down into a machine config. If the
|
|
1414
1414
|
* tree was produced with `parse(input, { locations: true })`, any
|
|
@@ -1429,7 +1429,7 @@ declare function compile<StateType, mDT>(tree: JssmParseTree<StateType, mDT>): J
|
|
|
1429
1429
|
* Not generally meant for external use. Please see {@link compile} or
|
|
1430
1430
|
* {@link sm}.
|
|
1431
1431
|
*
|
|
1432
|
-
* @
|
|
1432
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
1433
1433
|
*
|
|
1434
1434
|
* @param plan The FSL code to be evaluated and built into a machine config
|
|
1435
1435
|
*
|
|
@@ -2246,7 +2246,7 @@ declare class Machine<mDT> {
|
|
|
2246
2246
|
* console.log( lswitch.state() ); // 'off'
|
|
2247
2247
|
* ```
|
|
2248
2248
|
*
|
|
2249
|
-
* @
|
|
2249
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
2250
2250
|
*
|
|
2251
2251
|
* @returns The current state name.
|
|
2252
2252
|
*
|
|
@@ -2266,7 +2266,7 @@ declare class Machine<mDT> {
|
|
|
2266
2266
|
*
|
|
2267
2267
|
* See also {@link display_text}.
|
|
2268
2268
|
*
|
|
2269
|
-
* @
|
|
2269
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
2270
2270
|
*
|
|
2271
2271
|
* @param state The state to get the label for.
|
|
2272
2272
|
*
|
|
@@ -2293,7 +2293,7 @@ declare class Machine<mDT> {
|
|
|
2293
2293
|
* console.log( lswitch.display_text('b') ); // 'b'
|
|
2294
2294
|
* ```
|
|
2295
2295
|
*
|
|
2296
|
-
* @
|
|
2296
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
2297
2297
|
*
|
|
2298
2298
|
* @param state The state to get display text for.
|
|
2299
2299
|
*
|
|
@@ -2312,7 +2312,7 @@ declare class Machine<mDT> {
|
|
|
2312
2312
|
* console.log( lswitch.data() ); // 1
|
|
2313
2313
|
* ```
|
|
2314
2314
|
*
|
|
2315
|
-
* @
|
|
2315
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
2316
2316
|
*
|
|
2317
2317
|
* @returns A deep clone of the machine's current data value.
|
|
2318
2318
|
*
|
|
@@ -2476,7 +2476,7 @@ declare class Machine<mDT> {
|
|
|
2476
2476
|
* console.log( final_test.is_start_state('b') ); // true
|
|
2477
2477
|
* ```
|
|
2478
2478
|
*
|
|
2479
|
-
* @
|
|
2479
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
2480
2480
|
*
|
|
2481
2481
|
* @param whichState The name of the state to check
|
|
2482
2482
|
*
|
|
@@ -2501,7 +2501,7 @@ declare class Machine<mDT> {
|
|
|
2501
2501
|
* console.log( final_test.is_start_state('b') ); // true
|
|
2502
2502
|
* ```
|
|
2503
2503
|
*
|
|
2504
|
-
* @
|
|
2504
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
2505
2505
|
*
|
|
2506
2506
|
* @param whichState The name of the state to check
|
|
2507
2507
|
*
|
|
@@ -2554,7 +2554,7 @@ declare class Machine<mDT> {
|
|
|
2554
2554
|
* console.log( final_test.state_is_final('second') ); // true
|
|
2555
2555
|
* ```
|
|
2556
2556
|
*
|
|
2557
|
-
* @
|
|
2557
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
2558
2558
|
*
|
|
2559
2559
|
* @param whichState The name of the state to check for finality
|
|
2560
2560
|
*
|
|
@@ -2584,7 +2584,7 @@ declare class Machine<mDT> {
|
|
|
2584
2584
|
* string to recreate (to not waste repeated space;) if you want the machine
|
|
2585
2585
|
* string embedded, call {@link serialize_with_string} instead.
|
|
2586
2586
|
*
|
|
2587
|
-
* @
|
|
2587
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
2588
2588
|
*
|
|
2589
2589
|
* @param comment An optional comment string to embed in the serialized
|
|
2590
2590
|
* output for identification or debugging.
|
|
@@ -2744,7 +2744,7 @@ declare class Machine<mDT> {
|
|
|
2744
2744
|
* console.log( lswitch.states() ); // ['on', 'off']
|
|
2745
2745
|
* ```
|
|
2746
2746
|
*
|
|
2747
|
-
* @
|
|
2747
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
2748
2748
|
*
|
|
2749
2749
|
* @returns An array of all state names in the machine.
|
|
2750
2750
|
*
|
|
@@ -2769,7 +2769,7 @@ declare class Machine<mDT> {
|
|
|
2769
2769
|
* console.log( lswitch.has_state('dance') ); // false
|
|
2770
2770
|
* ```
|
|
2771
2771
|
*
|
|
2772
|
-
* @
|
|
2772
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
2773
2773
|
*
|
|
2774
2774
|
* @param whichState The state to be checked for existence.
|
|
2775
2775
|
*
|
|
@@ -2807,7 +2807,7 @@ declare class Machine<mDT> {
|
|
|
2807
2807
|
* ]
|
|
2808
2808
|
* ```
|
|
2809
2809
|
*
|
|
2810
|
-
* @
|
|
2810
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
2811
2811
|
*
|
|
2812
2812
|
* @returns An array of all {@link JssmTransition} edge objects.
|
|
2813
2813
|
*
|
|
@@ -2958,7 +2958,7 @@ declare class Machine<mDT> {
|
|
|
2958
2958
|
* light.list_transitions(); // { entrances: [ 'yellow', 'off' ], exits: [ 'green', 'off' ] }
|
|
2959
2959
|
* ```
|
|
2960
2960
|
*
|
|
2961
|
-
* @
|
|
2961
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
2962
2962
|
*
|
|
2963
2963
|
* @param whichState The state whose transitions to have listed
|
|
2964
2964
|
*
|
|
@@ -2981,7 +2981,7 @@ declare class Machine<mDT> {
|
|
|
2981
2981
|
* light.list_entrances(); // [ 'yellow', 'off' ]
|
|
2982
2982
|
* ```
|
|
2983
2983
|
*
|
|
2984
|
-
* @
|
|
2984
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
2985
2985
|
*
|
|
2986
2986
|
* @param whichState The state whose entrances to have listed
|
|
2987
2987
|
*
|
|
@@ -3003,7 +3003,7 @@ declare class Machine<mDT> {
|
|
|
3003
3003
|
* light.list_exits(); // [ 'green', 'off' ]
|
|
3004
3004
|
* ```
|
|
3005
3005
|
*
|
|
3006
|
-
* @
|
|
3006
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
3007
3007
|
*
|
|
3008
3008
|
* @param whichState The state whose exits to have listed
|
|
3009
3009
|
*
|
|
@@ -3141,7 +3141,7 @@ declare class Machine<mDT> {
|
|
|
3141
3141
|
* console.log( machine.actions() ); // logs ['next', 'shutdown']
|
|
3142
3142
|
* ```
|
|
3143
3143
|
*
|
|
3144
|
-
* @
|
|
3144
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
3145
3145
|
*
|
|
3146
3146
|
* @param whichState The state whose actions to list. Defaults to the
|
|
3147
3147
|
* current state.
|
|
@@ -3167,7 +3167,7 @@ declare class Machine<mDT> {
|
|
|
3167
3167
|
* console.log( machine.list_states_having_action('start') ); // ['off']
|
|
3168
3168
|
* ```
|
|
3169
3169
|
*
|
|
3170
|
-
* @
|
|
3170
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
3171
3171
|
*
|
|
3172
3172
|
* @param whichState The action to be checked for associated states
|
|
3173
3173
|
*
|
|
@@ -3240,7 +3240,7 @@ declare class Machine<mDT> {
|
|
|
3240
3240
|
* m.isIn('nonesuch'); // false — undeclared group has no members
|
|
3241
3241
|
* ```
|
|
3242
3242
|
*
|
|
3243
|
-
* @
|
|
3243
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
3244
3244
|
*
|
|
3245
3245
|
* @param groupName The group to test the current state against.
|
|
3246
3246
|
*
|
|
@@ -3268,7 +3268,7 @@ declare class Machine<mDT> {
|
|
|
3268
3268
|
* m.groupsOf('z'); // Set {} — not in any group
|
|
3269
3269
|
* ```
|
|
3270
3270
|
*
|
|
3271
|
-
* @
|
|
3271
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
3272
3272
|
*
|
|
3273
3273
|
* @param state The state whose containing groups are wanted.
|
|
3274
3274
|
*
|
|
@@ -3294,7 +3294,7 @@ declare class Machine<mDT> {
|
|
|
3294
3294
|
* m.groups(); // [ 'first', 'second' ]
|
|
3295
3295
|
* ```
|
|
3296
3296
|
*
|
|
3297
|
-
* @
|
|
3297
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
3298
3298
|
*
|
|
3299
3299
|
* @returns The declared group names, in declaration order.
|
|
3300
3300
|
*
|
|
@@ -3317,7 +3317,7 @@ declare class Machine<mDT> {
|
|
|
3317
3317
|
* m.statesIn('inner'); // [ 'a', 'b' ]
|
|
3318
3318
|
* ```
|
|
3319
3319
|
*
|
|
3320
|
-
* @
|
|
3320
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
3321
3321
|
*
|
|
3322
3322
|
* @param groupName The group whose transitive member states are wanted.
|
|
3323
3323
|
*
|
|
@@ -3365,7 +3365,7 @@ declare class Machine<mDT> {
|
|
|
3365
3365
|
* off(); // unsubscribe
|
|
3366
3366
|
* ```
|
|
3367
3367
|
*
|
|
3368
|
-
* @
|
|
3368
|
+
* @typeParam Ev The event name (drives the detail type).
|
|
3369
3369
|
* @param name The event name to subscribe to.
|
|
3370
3370
|
* @param filterOrFn Either a filter object or, when calling the no-filter
|
|
3371
3371
|
* form, the handler itself.
|
|
@@ -3386,7 +3386,7 @@ declare class Machine<mDT> {
|
|
|
3386
3386
|
* m.once('terminal', e => console.log(`done at ${e.state}`));
|
|
3387
3387
|
* ```
|
|
3388
3388
|
*
|
|
3389
|
-
* @
|
|
3389
|
+
* @typeParam Ev The event name.
|
|
3390
3390
|
* @param name The event name.
|
|
3391
3391
|
* @param filterOrFn A filter object or the handler (no-filter form).
|
|
3392
3392
|
* @param maybeFn The handler, when a filter was supplied.
|
|
@@ -3890,7 +3890,7 @@ declare class Machine<mDT> {
|
|
|
3890
3890
|
* - When multiple edges exist between two states with different `kind`
|
|
3891
3891
|
* values, only the first edge's kind is used to pick the edge-type hook.
|
|
3892
3892
|
*
|
|
3893
|
-
* @
|
|
3893
|
+
* @typeParam mDT The type of the machine data member; usually omitted.
|
|
3894
3894
|
*
|
|
3895
3895
|
* @param newStateOrAction The target state name (for a plain or forced
|
|
3896
3896
|
* transition) or the action name (when `wasAction` is true).
|
|
@@ -3942,7 +3942,7 @@ declare class Machine<mDT> {
|
|
|
3942
3942
|
*
|
|
3943
3943
|
* Notice that the machine's current state, `e`, is not in the returned list.
|
|
3944
3944
|
*
|
|
3945
|
-
* @
|
|
3945
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
3946
3946
|
*
|
|
3947
3947
|
*/
|
|
3948
3948
|
get history(): [string, mDT][];
|
|
@@ -3975,7 +3975,7 @@ declare class Machine<mDT> {
|
|
|
3975
3975
|
*
|
|
3976
3976
|
* Notice that the machine's current state, `e`, is in the returned list.
|
|
3977
3977
|
*
|
|
3978
|
-
* @
|
|
3978
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
3979
3979
|
*
|
|
3980
3980
|
*/
|
|
3981
3981
|
get history_inclusive(): [string, mDT][];
|
|
@@ -3994,7 +3994,7 @@ declare class Machine<mDT> {
|
|
|
3994
3994
|
* foo.history_length; // 5
|
|
3995
3995
|
* ```
|
|
3996
3996
|
*
|
|
3997
|
-
* @
|
|
3997
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
3998
3998
|
*
|
|
3999
3999
|
*/
|
|
4000
4000
|
get history_length(): number;
|
|
@@ -4011,7 +4011,7 @@ declare class Machine<mDT> {
|
|
|
4011
4011
|
* light.state(); // 'green'
|
|
4012
4012
|
* ```
|
|
4013
4013
|
*
|
|
4014
|
-
* @
|
|
4014
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
4015
4015
|
*
|
|
4016
4016
|
* @param actionName The action to engage
|
|
4017
4017
|
*
|
|
@@ -4038,7 +4038,7 @@ declare class Machine<mDT> {
|
|
|
4038
4038
|
* // { shape: 'circle' }
|
|
4039
4039
|
* ```
|
|
4040
4040
|
*
|
|
4041
|
-
* @
|
|
4041
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
4042
4042
|
*
|
|
4043
4043
|
* @returns The {@link JssmStateConfig} for standard states.
|
|
4044
4044
|
*
|
|
@@ -4064,7 +4064,7 @@ declare class Machine<mDT> {
|
|
|
4064
4064
|
* // { shape: 'circle' }
|
|
4065
4065
|
* ```
|
|
4066
4066
|
*
|
|
4067
|
-
* @
|
|
4067
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
4068
4068
|
*
|
|
4069
4069
|
* @returns The {@link JssmStateConfig} for hooked states.
|
|
4070
4070
|
*
|
|
@@ -4089,7 +4089,7 @@ declare class Machine<mDT> {
|
|
|
4089
4089
|
* // { shape: 'circle' }
|
|
4090
4090
|
* ```
|
|
4091
4091
|
*
|
|
4092
|
-
* @
|
|
4092
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
4093
4093
|
*
|
|
4094
4094
|
* @returns The {@link JssmStateConfig} for start states.
|
|
4095
4095
|
*
|
|
@@ -4119,7 +4119,7 @@ declare class Machine<mDT> {
|
|
|
4119
4119
|
* // { shape: 'circle' }
|
|
4120
4120
|
* ```
|
|
4121
4121
|
*
|
|
4122
|
-
* @
|
|
4122
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
4123
4123
|
*
|
|
4124
4124
|
* @returns The {@link JssmStateConfig} for end states.
|
|
4125
4125
|
*
|
|
@@ -4144,7 +4144,7 @@ declare class Machine<mDT> {
|
|
|
4144
4144
|
* // { shape: 'circle' }
|
|
4145
4145
|
* ```
|
|
4146
4146
|
*
|
|
4147
|
-
* @
|
|
4147
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
4148
4148
|
*
|
|
4149
4149
|
* @returns The {@link JssmStateConfig} for terminal states.
|
|
4150
4150
|
*
|
|
@@ -4166,7 +4166,7 @@ declare class Machine<mDT> {
|
|
|
4166
4166
|
* // { shape: 'circle' }
|
|
4167
4167
|
* ```
|
|
4168
4168
|
*
|
|
4169
|
-
* @
|
|
4169
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
4170
4170
|
*
|
|
4171
4171
|
* @returns The {@link JssmStateConfig} for the active state.
|
|
4172
4172
|
*
|
|
@@ -4438,7 +4438,7 @@ declare class Machine<mDT> {
|
|
|
4438
4438
|
* m.resolve_state_config('working').color; // '#ffa500ff' — from group &busy
|
|
4439
4439
|
* ```
|
|
4440
4440
|
*
|
|
4441
|
-
* @
|
|
4441
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
4442
4442
|
*
|
|
4443
4443
|
* @param state The state to compute the composite config for.
|
|
4444
4444
|
*
|
|
@@ -4461,7 +4461,7 @@ declare class Machine<mDT> {
|
|
|
4461
4461
|
* winning over outer), then the per-state config, and finally — for the
|
|
4462
4462
|
* current state only — the active overlay. Last wins at every tier.
|
|
4463
4463
|
*
|
|
4464
|
-
* @
|
|
4464
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
4465
4465
|
*
|
|
4466
4466
|
* @param state The state to compute the composite style for.
|
|
4467
4467
|
*
|
|
@@ -4495,7 +4495,7 @@ declare class Machine<mDT> {
|
|
|
4495
4495
|
* light.state(); // 'yellow'
|
|
4496
4496
|
* ```
|
|
4497
4497
|
*
|
|
4498
|
-
* @
|
|
4498
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
4499
4499
|
*
|
|
4500
4500
|
* @param actionName The action to engage
|
|
4501
4501
|
*
|
|
@@ -4528,7 +4528,7 @@ declare class Machine<mDT> {
|
|
|
4528
4528
|
* light.state(); // 'green'
|
|
4529
4529
|
* ```
|
|
4530
4530
|
*
|
|
4531
|
-
* @
|
|
4531
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
4532
4532
|
*
|
|
4533
4533
|
* @param newState The state to switch to
|
|
4534
4534
|
*
|
|
@@ -4550,7 +4550,7 @@ declare class Machine<mDT> {
|
|
|
4550
4550
|
* light.state(); // 'green'
|
|
4551
4551
|
* ```
|
|
4552
4552
|
*
|
|
4553
|
-
* @
|
|
4553
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
4554
4554
|
*
|
|
4555
4555
|
* @param newState The state to switch to
|
|
4556
4556
|
*
|
|
@@ -4575,7 +4575,7 @@ declare class Machine<mDT> {
|
|
|
4575
4575
|
* light.state(); // 'off'
|
|
4576
4576
|
* ```
|
|
4577
4577
|
*
|
|
4578
|
-
* @
|
|
4578
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
4579
4579
|
*
|
|
4580
4580
|
* @param newState The state to switch to
|
|
4581
4581
|
*
|
|
@@ -4679,7 +4679,7 @@ declare class Machine<mDT> {
|
|
|
4679
4679
|
* const lswitch = jssm.from('on <=> off;');
|
|
4680
4680
|
* ```
|
|
4681
4681
|
*
|
|
4682
|
-
* @
|
|
4682
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
4683
4683
|
*
|
|
4684
4684
|
* @param template_strings The assembled code
|
|
4685
4685
|
*
|
|
@@ -4702,7 +4702,7 @@ declare function sm<mDT>(template_strings: TemplateStringsArray, ...remainder: a
|
|
|
4702
4702
|
* const lswitch = jssm.from('on <=> off;');
|
|
4703
4703
|
* ```
|
|
4704
4704
|
*
|
|
4705
|
-
* @
|
|
4705
|
+
* @typeParam mDT The type of the machine data member; usually omitted
|
|
4706
4706
|
*
|
|
4707
4707
|
* @param MachineAsString The FSL code to evaluate
|
|
4708
4708
|
*
|
|
@@ -4728,7 +4728,7 @@ declare function from<mDT>(MachineAsString: string, ExtraConstructorFields?: Par
|
|
|
4728
4728
|
* is_hook_complex_result({ other: 'thing' }); // false
|
|
4729
4729
|
* ```
|
|
4730
4730
|
*
|
|
4731
|
-
* @
|
|
4731
|
+
* @typeParam mDT The type of the machine data member; usually omitted.
|
|
4732
4732
|
*
|
|
4733
4733
|
* @param hr The value to test.
|
|
4734
4734
|
*
|
|
@@ -4757,7 +4757,7 @@ declare function is_hook_complex_result<mDT>(hr: unknown): hr is HookComplexResu
|
|
|
4757
4757
|
* is_hook_rejection({ pass: false }); // true (reject)
|
|
4758
4758
|
* ```
|
|
4759
4759
|
*
|
|
4760
|
-
* @
|
|
4760
|
+
* @typeParam mDT The type of the machine data member; usually omitted.
|
|
4761
4761
|
*
|
|
4762
4762
|
* @param hr A hook result of any legal shape.
|
|
4763
4763
|
*
|
|
@@ -4787,7 +4787,7 @@ declare function is_hook_rejection<mDT>(hr: HookResult<mDT>): boolean;
|
|
|
4787
4787
|
*
|
|
4788
4788
|
* Anything else is a programmer error and throws.
|
|
4789
4789
|
*
|
|
4790
|
-
* @
|
|
4790
|
+
* @typeParam mDT The type of the machine data member; usually omitted.
|
|
4791
4791
|
*
|
|
4792
4792
|
* @param maybe_hook The hook handler to call, or `undefined` for the
|
|
4793
4793
|
* "no hook installed" case.
|
|
@@ -4824,7 +4824,7 @@ declare function abstract_hook_step<mDT>(maybe_hook: HookHandler<mDT> | undefine
|
|
|
4824
4824
|
* - `false` or `null` → `{ pass: false }`
|
|
4825
4825
|
* - a complex result → returned as-is
|
|
4826
4826
|
*
|
|
4827
|
-
* @
|
|
4827
|
+
* @typeParam mDT The type of the machine data member; usually omitted.
|
|
4828
4828
|
*
|
|
4829
4829
|
* @param maybe_hook The everything-hook handler, or `undefined` when none
|
|
4830
4830
|
* is installed.
|
|
@@ -4889,7 +4889,7 @@ declare function compareVersions(v1: string, v2: string): number;
|
|
|
4889
4889
|
* state, data, and history. For security and compatibility reasons, it will
|
|
4890
4890
|
* refuse to deserialize data from future versions of the library.
|
|
4891
4891
|
*
|
|
4892
|
-
* @
|
|
4892
|
+
* @typeParam mDT - The type of the machine data member
|
|
4893
4893
|
*
|
|
4894
4894
|
* @param {string} machine_string - The FSL string defining the machine structure
|
|
4895
4895
|
* @param {JssmSerialization<mDT>} ser - The serialization object to restore from
|