@cydran/cydran 0.5.1 → 0.6.0

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2019 The Cydran Team <https://cydran.io/>
3
+ Copyright (c) 2018-2026 The Cydran Team <https://cydran.io/>
4
4
 
5
5
  Derivative work based on Lodash 4.17.15 <https://lodash.com/license>
6
6
  Copyright (c) 2019 OpenJS Foundation and other contributors <https://openjsf.org/>
package/dist/cydran.d.ts CHANGED
@@ -1,5 +1,26 @@
1
- // Generated by dts-bundle-generator v9.5.1
1
+ /*
2
+ 0.6.0
3
+ ---
4
+ Cydran <https://cydran.io/>
5
+ Copyright (c) 2018-2026 The Cydran Team <https://cydran.io/>
6
+ SPDX-License-Identifier: MIT
7
+ ---
8
+ Derivative work based on Lodash 4.17.15 <https://lodash.com/license>
9
+ Copyright (c) 2019 OpenJS Foundation and other contributors <https://openjsf.org/>
10
+ ---
11
+ Derivative work based on Underscore.js
12
+ Copyright (c) 2012 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
13
+ ---
14
+ Derivative work based on docReady <https://github.com/jfriend00/docReady/blob/master/license>
15
+ Copyright (c) 2014, John Friend <https://github.com/jfriend00/docReady/>
16
+ ---
17
+ Derivative work based on Math.uuid.js <http://www.broofa.com>
18
+ Copyright (c) 2010 Robert Kieffer <https://www.broofa.com/2008/09/javascript-uuid-function/>
19
+ ---
20
+ Derivative work based on UMD <https://github.com/umdjs/umd/blob/master/LICENSE.md>
21
+ Copyright (c) 2014 the UMD contributors <https://github.com/umdjs/umd/>
2
22
 
23
+ */
3
24
  export declare abstract class AbstractBehavior<M, E extends HTMLElement | Text, P> implements Behavior<M, E, P> {
4
25
  private ____internal$$cydran____;
5
26
  constructor();
@@ -14,14 +35,14 @@ export declare abstract class AbstractBehavior<M, E extends HTMLElement | Text,
14
35
  * Get the active context instance reference by id
15
36
  * @return U
16
37
  */
17
- getObject<U>(id: string, ...instanceArguments: unknown[]): U;
38
+ getObject<U>(id: string, ...instanceArguments: InstanceArgument[]): U;
18
39
  /**
19
40
  * [message description]
20
41
  * @param {string} channelName [description]
21
42
  * @param {string} messageName [description]
22
43
  */
23
- send(messageName: string, payload?: unknown, startFrom?: string): SendContinuation;
24
- tell(name: string, payload?: unknown): void;
44
+ send(messageName: string, payload?: MessagePayload, startFrom?: string): SendContinuation;
45
+ tell(name: string, payload?: MessagePayload): void;
25
46
  on(messageName: string): OnContinuation;
26
47
  getParentId(): string;
27
48
  getId(): string;
@@ -59,7 +80,7 @@ export declare abstract class AbstractBehavior<M, E extends HTMLElement | Text,
59
80
  * @param {string} expression [description]
60
81
  * @return {mediator} [description]
61
82
  */
62
- protected mediate<T>(expression: string, reducerFn?: (input: unknown) => T): Mediator<T>;
83
+ protected mediate<T>(expression: string, reducerFn?: (input: ModelValue) => T): Mediator<T>;
63
84
  /**
64
85
  * [getModel description]
65
86
  * @return {unknown} [description]
@@ -95,7 +116,7 @@ export declare abstract class AbstractBehavior<M, E extends HTMLElement | Text,
95
116
  protected setConverters(converters: BehaviorAttributeConverters): void;
96
117
  protected setPrefixed(prefixed: boolean): void;
97
118
  protected setLoggerName(name: string): void;
98
- protected setReducerFn(reducerFn: (input: unknown) => M): void;
119
+ protected setReducerFn(reducerFn: (input: ModelValue) => M): void;
99
120
  }
100
121
  export declare abstract class AbstractValueBehavior<M, E extends HTMLElement | Text, P> extends AbstractBehavior<M, E, P> {
101
122
  constructor();
@@ -284,7 +305,7 @@ export interface ActionContinuation extends Tellable, Messagable {
284
305
  evaluate<T>(expression: string): T;
285
306
  getParent(): Nestable;
286
307
  getEl(): HTMLElement;
287
- getObject<T>(id: string, ...instanceArguments: unknown[]): T;
308
+ getObject<T>(id: string, ...instanceArguments: InstanceArgument[]): T;
288
309
  getLogger(): Logger;
289
310
  properties(): Properties;
290
311
  getId(): string;
@@ -294,7 +315,7 @@ export interface ActionContinuation extends Tellable, Messagable {
294
315
  getValue<T>(): T;
295
316
  isMounted(): boolean;
296
317
  isConnected(): boolean;
297
- send(messageName: string, payload?: unknown): SendContinuation;
318
+ send(messageName: string, payload?: MessagePayload): SendContinuation;
298
319
  onInterval(millis?: number): IntervalContinuation;
299
320
  onMessage(messageName: string): OnContinuation;
300
321
  /**
@@ -304,7 +325,7 @@ export interface ActionContinuation extends Tellable, Messagable {
304
325
  */
305
326
  createFilter(expression: string): FilterBuilder;
306
327
  regions(): RegionContinuation;
307
- tell(name: string, payload?: unknown): void;
328
+ tell(name: string, payload?: MessagePayload): void;
308
329
  forElement<E extends HTMLElement>(name: string): ElementOperations<E>;
309
330
  forSeries(name: string): SeriesOperations;
310
331
  forForm(name: string): FormOperations;
@@ -339,48 +360,48 @@ export interface Appender {
339
360
  * @param error error object to log stack with
340
361
  * @param moreArgs additional objects to log
341
362
  */
342
- trace(label: string, message: string, error?: Error, moreArgs?: unknown[]): void;
363
+ trace(label: string, message: string, error?: Error, moreArgs?: LogArgument[]): void;
343
364
  /**
344
365
  * Log payload at a "debug" level
345
366
  * @param label name of logger
346
367
  * @param message to be written out
347
368
  * @param error error object to log stack with
348
369
  */
349
- debug(label: string, message: string, error?: Error, moreArgs?: unknown[]): void;
370
+ debug(label: string, message: string, error?: Error, moreArgs?: LogArgument[]): void;
350
371
  /**
351
372
  * Log payload at a "info" level
352
373
  * @param label name of logger
353
374
  * @param message to be written out
354
375
  * @param error error object to log stack with
355
376
  */
356
- info(label: string, message: string, error?: Error, moreArgs?: unknown[]): void;
377
+ info(label: string, message: string, error?: Error, moreArgs?: LogArgument[]): void;
357
378
  /**
358
379
  * Log payload at a "warn" level
359
380
  * @param label name of logger
360
381
  * @param message to be written out
361
382
  * @param error error object to log stack with
362
383
  */
363
- warn(label: string, message: string, error?: Error, moreArgs?: unknown[]): void;
384
+ warn(label: string, message: string, error?: Error, moreArgs?: LogArgument[]): void;
364
385
  /**
365
386
  * Log payload at a "error" level
366
387
  * @param label name of logger
367
388
  * @param message to be written out
368
389
  * @param error error object to log stack with
369
390
  */
370
- error(label: string, message: string, error?: Error, moreArgs?: unknown[]): void;
391
+ error(label: string, message: string, error?: Error, moreArgs?: LogArgument[]): void;
371
392
  /**
372
393
  * Log payload at a "fatal" level
373
394
  * @param label name of logger
374
395
  * @param message to be written out
375
396
  * @param error error object to log stack with
376
397
  */
377
- fatal(label: string, message: string, error?: Error, moreArgs?: unknown[]): void;
398
+ fatal(label: string, message: string, error?: Error, moreArgs?: LogArgument[]): void;
378
399
  }
379
400
  export interface ArgumentOption {
380
401
  type: ArgumentType;
381
402
  }
382
403
  export interface ArgumentsResolvers {
383
- resolve(context: unknown, instanceArguments: unknown[]): unknown[];
404
+ resolve(context: unknown, instanceArguments: InstanceArgument[]): ConstructorArgument[];
384
405
  postProcess(context: unknown, targetObject: unknown, params: unknown[]): void;
385
406
  }
386
407
  export interface ArgumentsResolversBuilder extends Builder<ArgumentsResolvers> {
@@ -388,7 +409,7 @@ export interface ArgumentsResolversBuilder extends Builder<ArgumentsResolvers> {
388
409
  * Intent to resolve a registered object in the Cydran service discovery functionality
389
410
  * @param id unique string key of the registered object
390
411
  */
391
- with(id: string, ...instanceArguments: unknown[]): ArgumentsResolversBuilder;
412
+ with(id: string, ...instanceArguments: InstanceArgument[]): ArgumentsResolversBuilder;
392
413
  /**
393
414
  * Intent to resolve function that will return a registered object in the Cydran service discovery functionality when invoked
394
415
  * @param id unique string key of the registered object
@@ -498,13 +519,24 @@ export interface Context extends Sendable, Register<Context>, Tellable, Receivab
498
519
  hasChild(name: string): boolean;
499
520
  addChild(name: string, initializer?: (context: Context) => void): Context;
500
521
  removeChild(name: string): Context;
501
- getObject<T>(id: string, ...instanceArguments: unknown[]): T;
522
+ getObject<T>(id: string, ...instanceArguments: InstanceArgument[]): T;
502
523
  getProperties(): MutableProperties;
503
524
  getScope(): Scope;
504
525
  getRoot(): Context;
505
526
  isRoot(): boolean;
506
527
  getParent(): Context;
507
528
  registerImplicit(id: string, template: string, options?: ComponentOptions): Context;
529
+ /**
530
+ * Promotes this context's own object registration to its parent context, as an alias that resolves in this context.
531
+ * The alias is removed from the parent when this context is removed or released.
532
+ *
533
+ * @param id - the id of this context's own registration to promote
534
+ * @param overrideId - optional id to register the alias under in the parent, instead of id
535
+ * @returns this context
536
+ * @throws RegistrationError when this context has no registration of its own under id, or the parent already has one under the target id
537
+ * @throws UnsupportedOperationError when called on a root context or the global context
538
+ */
539
+ promote(id: string, overrideId?: string): Context;
508
540
  getName(): string;
509
541
  getFullName(): string;
510
542
  addPreInitializer(thisObject: CallBackThisObject, callback: (context?: Context) => void): void;
@@ -541,7 +573,7 @@ export interface Filter {
541
573
  * Get the resulting array of items after the filter has been applied
542
574
  * @returns array of filtered objects
543
575
  */
544
- items(): unknown[];
576
+ items(): ListItem[];
545
577
  /**
546
578
  * Extend a {Filter filter} instance
547
579
  * @returns a {FilterBuilder} object
@@ -550,8 +582,8 @@ export interface Filter {
550
582
  }
551
583
  export interface FilterBuilder {
552
584
  withPredicate(expression: string, ...parameterExpressions: string[]): FilterBuilder;
553
- withPhase(fn: (input: unknown[]) => unknown[]): FilterBuilder;
554
- withSimplePredicate(predicate: (index: number, value: unknown) => boolean): FilterBuilder;
585
+ withPhase(fn: (input: ListItem[]) => ListItem[]): FilterBuilder;
586
+ withSimplePredicate(predicate: (index: number, value: ListItem) => boolean): FilterBuilder;
555
587
  withSort(expression: string, ...parameterExpressions: string[]): FilterBuilder;
556
588
  withLimit(limit: number): FilterBuilder;
557
589
  with(fn: (builder: FilterBuilder) => void): FilterBuilder;
@@ -633,73 +665,73 @@ export interface Logger extends IsLevelType {
633
665
  * @param primaryMsg to be written out
634
666
  * @param moreArgs additional optional arguments; the last argument as an Error is assumed to be required for the stack ouptut regardless of log level
635
667
  */
636
- trace(primaryMsg: string, ...moreArgs: unknown[]): void;
668
+ trace(primaryMsg: string, ...moreArgs: LogArgument[]): void;
637
669
  /**
638
670
  * Log payload at a "debug" level
639
671
  * @param primaryMsg to be written out
640
672
  * @param moreArgs additional optional arguments; the last argument as an Error is assumed to be required for the stack ouptut regardless of log level
641
673
  */
642
- debug(primaryMsg: string, ...moreArgs: unknown[]): void;
674
+ debug(primaryMsg: string, ...moreArgs: LogArgument[]): void;
643
675
  /**
644
676
  * Log payload at a "info" level
645
677
  * @param primaryMsg to be written out
646
678
  * @param moreArgs additional optional arguments; the last argument as an Error is assumed to be required for the stack ouptut regardless of log level
647
679
  */
648
- info(primaryMsg: string, ...moreArgs: unknown[]): void;
680
+ info(primaryMsg: string, ...moreArgs: LogArgument[]): void;
649
681
  /**
650
682
  * Log payload at a "warn" level
651
683
  * @param primaryMsg to be written out
652
684
  * @param moreArgs additional optional arguments; the last argument as an Error is assumed to be required for the stack ouptut regardless of log level
653
685
  */
654
- warn(primaryMsg: string, ...moreArgs: unknown[]): void;
686
+ warn(primaryMsg: string, ...moreArgs: LogArgument[]): void;
655
687
  /**
656
688
  * Log payload at a "error" level
657
689
  * @param primaryMsg to be written out
658
690
  * @param moreArgs additional optional arguments; the last argument as an Error is assumed to be required for the stack ouptut regardless of log level
659
691
  */
660
- error(primaryMsg: string, ...moreArgs: unknown[]): void;
692
+ error(primaryMsg: string, ...moreArgs: LogArgument[]): void;
661
693
  /**
662
694
  * Log payload at a "fatal" level
663
695
  * @param primaryMsg to be written out
664
696
  * @param moreArgs additional optional arguments; the last argument as an Error is assumed to be required for the stack ouptut regardless of log level
665
697
  */
666
- fatal(primaryMsg: string, ...moreArgs: unknown[]): void;
698
+ fatal(primaryMsg: string, ...moreArgs: LogArgument[]): void;
667
699
  /**
668
700
  * Only if log at a "trace" level execute fn() to derive payload to log
669
701
  * @param primaryMsgFn result of to be written out
670
702
  * @param moreArgs additional optional arguments; the last argument as an Error is assumed to be required for the stack ouptut regardless of log level
671
703
  */
672
- ifTrace(primaryMsgFn: () => unknown, ...moreArgs: unknown[]): void;
704
+ ifTrace(primaryMsgFn: () => LogArgument, ...moreArgs: LogArgument[]): void;
673
705
  /**
674
706
  * Only if log at a "debug" level execute fn() to derive payload to log
675
707
  * @param primaryMsgFn result of to be written out
676
708
  * @param moreArgs additional optional arguments; the last argument as an Error is assumed to be required for the stack ouptut regardless of log level
677
709
  */
678
- ifDebug(primaryMsgFn: () => unknown, ...moreArgs: unknown[]): void;
710
+ ifDebug(primaryMsgFn: () => LogArgument, ...moreArgs: LogArgument[]): void;
679
711
  /**
680
712
  * Only if log at a "info" level execute fn() to derive payload to log
681
713
  * @param primaryMsgFn result of to be written out
682
714
  * @param moreArgs additional optional arguments; the last argument as an Error is assumed to be required for the stack ouptut regardless of log level
683
715
  */
684
- ifInfo(primaryMsgFn: () => unknown, ...moreArgs: unknown[]): void;
716
+ ifInfo(primaryMsgFn: () => LogArgument, ...moreArgs: LogArgument[]): void;
685
717
  /**
686
718
  * Only if log at a "warn" level execute fn() to derive payload to log
687
719
  * @param primaryMsgFn result of to be written out
688
720
  * @param moreArgs additional optional arguments; the last argument as an Error is assumed to be required for the stack ouptut regardless of log level
689
721
  */
690
- ifWarn(primaryMsgFn: () => unknown, ...moreArgs: unknown[]): void;
722
+ ifWarn(primaryMsgFn: () => LogArgument, ...moreArgs: LogArgument[]): void;
691
723
  /**
692
724
  * Only if log at a "error" level execute fn() to derive payload to log
693
725
  * @param primaryMsgFn result of to be written out
694
726
  * @param moreArgs additional optional arguments; the last argument as an Error is assumed to be required for the stack ouptut regardless of log level
695
727
  */
696
- ifError(primaryMsgFn: () => unknown, ...moreArgs: unknown[]): void;
728
+ ifError(primaryMsgFn: () => LogArgument, ...moreArgs: LogArgument[]): void;
697
729
  /**
698
730
  * Only if log at a "fatal" level execute fn() to derive payload to log
699
731
  * @param primaryMsgFn result of to be written out
700
732
  * @param moreArgs additional optional arguments; the last argument as an Error is assumed to be required for the stack ouptut regardless of log level
701
733
  */
702
- ifFatal(primaryMsgFn: () => unknown, ...moreArgs: unknown[]): void;
734
+ ifFatal(primaryMsgFn: () => LogArgument, ...moreArgs: LogArgument[]): void;
703
735
  }
704
736
  export interface Machine<M> extends Releasable {
705
737
  create(model: M): MachineState<M>;
@@ -717,11 +749,11 @@ export interface MachineState<M> extends Releasable {
717
749
  }
718
750
  export interface Mediator<T> extends Releasable, DigestionCandidate, Tellable {
719
751
  get(): T;
720
- set(value: unknown): void;
752
+ set(value: T): void;
721
753
  watch(thisObject: CallBackThisObject, name: string): void;
722
754
  }
723
755
  export interface Messagable {
724
- send(messageName: string, payload?: unknown): SendContinuation;
756
+ send(messageName: string, payload?: MessagePayload): SendContinuation;
725
757
  }
726
758
  export interface MetadataContinuation {
727
759
  has: (name: string) => boolean;
@@ -734,13 +766,13 @@ export interface MutableProperties extends Properties {
734
766
  * @param value - any type of object
735
767
  * @returns
736
768
  */
737
- set(key: string, value: unknown): MutableProperties;
769
+ set(key: string, value: PropertyValue): MutableProperties;
738
770
  /**
739
771
  * Load additional properties in
740
772
  * @param values - any type of object
741
773
  * @returns
742
774
  */
743
- load(values: SimpleMap<unknown>): MutableProperties;
775
+ load(values: SimpleMap<PropertyValue>): MutableProperties;
744
776
  /**
745
777
  * Remove a specific property by key
746
778
  * @param key - string value
@@ -933,7 +965,7 @@ export interface Receivable {
933
965
  * @param messageName The name of the message to send.
934
966
  * @param payload The optional payload to include with the message.
935
967
  */
936
- message(channelName: string, messageName: string, payload?: unknown): void;
968
+ message(channelName: string, messageName: string, payload?: MessagePayload): void;
937
969
  }
938
970
  export interface Receiver extends Releasable, Receivable {
939
971
  on(messageName: string): OnContinuation;
@@ -945,17 +977,17 @@ export interface RegionContinuation {
945
977
  */
946
978
  has(name: string): boolean;
947
979
  /**
948
- * Get a child component from a region.
949
- * @param name - string name value of the child {@link Component}
950
- * @returns Component instance, or null
980
+ * Get the child component in a region.
981
+ * @param name - string name value of the region
982
+ * @returns the {@link Component} in the region, or null when the region holds no component
951
983
  */
952
- get<N extends Nestable>(name: string): N;
984
+ get<N extends Nestable>(name: string): N | null;
953
985
  /**
954
- * Set a child component into a region.
955
- * @param name - string name value of the child {@link Component}
956
- * @param component - the {@link Component} reference
986
+ * Set a child component into a region, or clear the region.
987
+ * @param name - string name value of the region
988
+ * @param component - the {@link Component} reference, or null to remove the region's component and leave it empty
957
989
  */
958
- set(name: string, component: Nestable): void;
990
+ set(name: string, component: Nestable | null): void;
959
991
  setByObjectId(name: string, componentName: string, defaultComponentName?: string): void;
960
992
  }
961
993
  export interface Register<R> extends Releasable {
@@ -965,7 +997,6 @@ export interface Register<R> extends Releasable {
965
997
  registerSingleton<T>(id: string, classInstance: Type<T>, resolvers?: ArgumentsResolvers, localResolution?: boolean): R;
966
998
  registerSingletonWithFactory<T>(id: string, factoryFn: () => T, resolvers?: ArgumentsResolvers, localResolution?: boolean): R;
967
999
  hasRegistration(id: string): boolean;
968
- expose(id: string): R;
969
1000
  }
970
1001
  export interface Releasable {
971
1002
  $release(): void;
@@ -974,7 +1005,7 @@ export interface Renderer {
974
1005
  render(): HTMLElement;
975
1006
  }
976
1007
  export interface Scope {
977
- add(name: string, item: unknown): Scope;
1008
+ add(name: string, item: ScopeItem): Scope;
978
1009
  remove(name: string): Scope;
979
1010
  extend(): Scope;
980
1011
  }
@@ -993,7 +1024,7 @@ export interface Sendable {
993
1024
  * @param payload The optional payload to include with the message
994
1025
  * @param startFrom The optional path to the context start the traversal from
995
1026
  */
996
- send(propagation: To, channelName: string, messageName: string, payload?: unknown, startFrom?: string): void;
1027
+ send(propagation: To, channelName: string, messageName: string, payload?: MessagePayload, startFrom?: string): void;
997
1028
  }
998
1029
  export interface SeriesOperations {
999
1030
  getAt<N extends Nestable>(index: number): N;
@@ -1015,35 +1046,82 @@ export interface Stage extends Releasable {
1015
1046
  before(): SeriesOperations;
1016
1047
  after(): SeriesOperations;
1017
1048
  start(): Stage;
1018
- setComponent(component: Nestable): Stage;
1049
+ /**
1050
+ * Set the top-level component of the stage, or remove it.
1051
+ * @param component - the {@link Component} to place, or null to remove the current component and leave the stage empty
1052
+ * @returns the stage
1053
+ */
1054
+ setComponent(component: Nestable | null): Stage;
1019
1055
  setComponentByObjectId(componentName: string, defaultComponentName?: string): Stage;
1020
1056
  isStarted(): boolean;
1021
1057
  addInitializer(thisObject: CallBackThisObject, callback: (stage: Stage) => void): Stage;
1022
1058
  }
1023
1059
  export interface Tellable {
1024
- tell(name: string, payload?: unknown): void;
1060
+ tell(name: string, payload?: MessagePayload): void;
1025
1061
  }
1026
1062
  export interface WatchContinuation {
1027
- reducedBy<T>(reducerFn: (input: unknown) => T): WatchContinuation;
1063
+ reducedBy<T>(reducerFn: (input: ModelValue) => T): WatchContinuation;
1028
1064
  invoke(name: string): void;
1029
1065
  }
1030
1066
  export type BehaviorAttributeConverters = SimpleMap<(value: string) => unknown>;
1031
1067
  export type BiConsumer<T, U> = (value0: T, value1?: U) => void;
1032
1068
  export type BiPredicate<T, U> = (value0: T, value1: U) => boolean;
1033
1069
  export type CallBackThisObject = object;
1070
+ /**
1071
+ * A resolved argument that is passed to the constructor or factory function that creates a registered object. It is
1072
+ * `unknown`: any value is accepted, and a value must be narrowed before use. The name documents intent only, so compiler
1073
+ * errors report it as `unknown`.
1074
+ */
1075
+ export type ConstructorArgument = unknown;
1034
1076
  export type Consumer<T> = (value: T) => void;
1035
1077
  export type FieldValidations<S> = SimpleMap<((field: unknown, instance: unknown, state: S) => string)[]>;
1036
- export type MessageCallback = (channelName: string, messageName: string, payload: unknown) => void;
1078
+ /**
1079
+ * An extra argument a caller passes when resolving an object by id, as in `getObject(id, ...instanceArguments)`. It is
1080
+ * `unknown`: any value is accepted, and a value must be narrowed before use. The name documents intent only, so compiler
1081
+ * errors report it as `unknown`.
1082
+ */
1083
+ export type InstanceArgument = unknown;
1084
+ /**
1085
+ * An element of an array rendered by `c-each` or processed by a filter. It is `unknown`: any value is accepted, and a
1086
+ * value must be narrowed before use. The name documents intent only, so compiler errors report it as `unknown`.
1087
+ */
1088
+ export type ListItem = unknown;
1089
+ /**
1090
+ * A value passed to a logger method, after or in place of the primary message. It is `unknown`: any value is accepted, and
1091
+ * a value must be narrowed before use. The name documents intent only, so compiler errors report it as `unknown`.
1092
+ */
1093
+ export type LogArgument = unknown;
1094
+ export type MessageCallback = (channelName: string, messageName: string, payload: MessagePayload) => void;
1095
+ /**
1096
+ * The payload of a message that is sent, told, delivered or received. It is `unknown`: any value is accepted, and a value
1097
+ * must be narrowed before use. The name documents intent only, so compiler errors report it as `unknown`.
1098
+ */
1099
+ export type MessagePayload = unknown;
1100
+ /**
1101
+ * A value read from or written to the model through a template expression. It is `unknown`: any value is accepted, and a
1102
+ * value must be narrowed before use. The name documents intent only, so compiler errors report it as `unknown`.
1103
+ */
1104
+ export type ModelValue = unknown;
1037
1105
  export type Predicate<T> = (value: T) => boolean;
1038
1106
  export type PropertyChangeCallback<T> = (value: T) => void;
1039
1107
  export type PropertyChangeFallbackCallback<T> = (key: string, value: T) => void;
1040
1108
  export type PropertyFallBackSubscriber = (thisObject: CallBackThisObject, name: string) => void;
1041
1109
  export type PropertyProvider<T> = () => T;
1042
1110
  export type PropertySubscriber = (thisObject: CallBackThisObject, name: string) => void;
1111
+ /**
1112
+ * The value of a configuration property. It is `unknown`: any value is accepted, and a value must be narrowed before use.
1113
+ * The name documents intent only, so compiler errors report it as `unknown`.
1114
+ */
1115
+ export type PropertyValue = unknown;
1116
+ /**
1117
+ * A value added to a scope, and reachable from template expressions through `s()`. It is `unknown`: any value is accepted,
1118
+ * and a value must be narrowed before use. The name documents intent only, so compiler errors report it as `unknown`.
1119
+ */
1120
+ export type ScopeItem = unknown;
1043
1121
  export type SimpleMap<T> = Record<string, T>;
1044
1122
  export type Transmitter = Sendable;
1045
1123
  export type Type<T> = new (...args: any[]) => T;
1046
- export type VarConsumer<T, U> = (Consumer<T> | BiConsumer<T, U>);
1124
+ export type VarConsumer<T, U> = Consumer<T> | BiConsumer<T, U>;
1047
1125
  export type VarPredicate<T, U> = Predicate<T> | BiPredicate<T, U>;
1048
1126
 
1049
1127
  export as namespace cydran;