@microsoft/fast-element 2.9.0 → 2.9.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.
Files changed (42) hide show
  1. package/CHANGELOG.json +31 -1
  2. package/CHANGELOG.md +18 -2
  3. package/dist/context/context.api.json +7 -7
  4. package/dist/di/di.api.json +12 -12
  5. package/dist/dts/binding/two-way.d.ts +1 -1
  6. package/dist/dts/components/attributes.d.ts +3 -3
  7. package/dist/dts/components/fast-definitions.d.ts +1 -1
  8. package/dist/dts/context.d.ts +7 -7
  9. package/dist/dts/di/di.d.ts +13 -13
  10. package/dist/dts/dom-policy.d.ts +5 -5
  11. package/dist/dts/dom.d.ts +2 -2
  12. package/dist/dts/interfaces.d.ts +7 -7
  13. package/dist/dts/observation/arrays.d.ts +1 -1
  14. package/dist/dts/observation/observable.d.ts +2 -2
  15. package/dist/dts/state/state.d.ts +9 -9
  16. package/dist/dts/styles/css-binding-directive.d.ts +1 -1
  17. package/dist/dts/styles/css-directive.d.ts +1 -1
  18. package/dist/dts/styles/css.d.ts +2 -2
  19. package/dist/dts/styles/element-styles.d.ts +2 -2
  20. package/dist/dts/templating/children.d.ts +1 -1
  21. package/dist/dts/templating/compiler.d.ts +1 -1
  22. package/dist/dts/templating/html-directive.d.ts +3 -3
  23. package/dist/dts/templating/node-observation.d.ts +1 -1
  24. package/dist/dts/templating/render.d.ts +6 -6
  25. package/dist/dts/templating/template.d.ts +2 -2
  26. package/dist/esm/components/element-controller.js +84 -84
  27. package/dist/esm/components/fast-definitions.js +15 -15
  28. package/dist/esm/di/di.js +12 -12
  29. package/dist/esm/hydration/target-builder.js +21 -7
  30. package/dist/esm/observation/arrays.js +12 -12
  31. package/dist/esm/styles/element-styles.js +9 -9
  32. package/dist/esm/templating/repeat.js +7 -7
  33. package/dist/esm/templating/view.js +9 -9
  34. package/dist/fast-element.api.json +26 -26
  35. package/dist/fast-element.d.ts +4 -4
  36. package/dist/fast-element.debug.js +162 -146
  37. package/dist/fast-element.debug.min.js +2 -2
  38. package/dist/fast-element.js +162 -146
  39. package/dist/fast-element.min.js +2 -2
  40. package/docs/di/api-report.api.md +4 -4
  41. package/karma.conf.cjs +13 -7
  42. package/package.json +3 -44
package/CHANGELOG.json CHANGED
@@ -2,7 +2,37 @@
2
2
  "name": "@microsoft/fast-element",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 08 Dec 2025 19:47:27 GMT",
5
+ "date": "Tue, 27 Jan 2026 17:28:54 GMT",
6
+ "version": "2.9.2",
7
+ "tag": "@microsoft/fast-element_v2.9.2",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "863023+radium-v@users.noreply.github.com",
12
+ "package": "@microsoft/fast-element",
13
+ "commit": "d1cd327a6d37cea742b1b1df48f807fe9a1da4f7",
14
+ "comment": "chore: hoist devDependencies"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Tue, 16 Dec 2025 21:27:19 GMT",
21
+ "version": "2.9.1",
22
+ "tag": "@microsoft/fast-element_v2.9.1",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "863023+radium-v@users.noreply.github.com",
27
+ "package": "@microsoft/fast-element",
28
+ "commit": "2c8de46fbde0440593f559cd2ddd8d7c6248f68d",
29
+ "comment": "fix: correct hydration marker indexes for templates with host bindings"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Mon, 08 Dec 2025 19:47:51 GMT",
6
36
  "version": "2.9.0",
7
37
  "tag": "@microsoft/fast-element_v2.9.0",
8
38
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,28 @@
1
1
  # Change Log - @microsoft/fast-element
2
2
 
3
- <!-- This log was last generated on Mon, 08 Dec 2025 19:47:27 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Tue, 27 Jan 2026 17:28:54 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 2.9.2
8
+
9
+ Tue, 27 Jan 2026 17:28:54 GMT
10
+
11
+ ### Patches
12
+
13
+ - chore: hoist devDependencies (863023+radium-v@users.noreply.github.com)
14
+
15
+ ## 2.9.1
16
+
17
+ Tue, 16 Dec 2025 21:27:19 GMT
18
+
19
+ ### Patches
20
+
21
+ - fix: correct hydration marker indexes for templates with host bindings (863023+radium-v@users.noreply.github.com)
22
+
7
23
  ## 2.9.0
8
24
 
9
- Mon, 08 Dec 2025 19:47:27 GMT
25
+ Mon, 08 Dec 2025 19:47:51 GMT
10
26
 
11
27
  ### Minor changes
12
28
 
@@ -179,7 +179,7 @@
179
179
  "excerptTokens": [
180
180
  {
181
181
  "kind": "Content",
182
- "text": "export declare type Context<T> = "
182
+ "text": "export type Context<T> = "
183
183
  },
184
184
  {
185
185
  "kind": "Content",
@@ -462,7 +462,7 @@
462
462
  "excerptTokens": [
463
463
  {
464
464
  "kind": "Content",
465
- "text": "export declare type ContextCallback<ValueType> = "
465
+ "text": "export type ContextCallback<ValueType> = "
466
466
  },
467
467
  {
468
468
  "kind": "Content",
@@ -501,7 +501,7 @@
501
501
  "excerptTokens": [
502
502
  {
503
503
  "kind": "Content",
504
- "text": "export declare type ContextDecorator<T = "
504
+ "text": "export type ContextDecorator<T = "
505
505
  },
506
506
  {
507
507
  "kind": "Content",
@@ -812,7 +812,7 @@
812
812
  "excerptTokens": [
813
813
  {
814
814
  "kind": "Content",
815
- "text": "export declare type ContextType<T extends "
815
+ "text": "export type ContextType<T extends "
816
816
  },
817
817
  {
818
818
  "kind": "Reference",
@@ -869,7 +869,7 @@
869
869
  "excerptTokens": [
870
870
  {
871
871
  "kind": "Content",
872
- "text": "export declare type FASTContext<T> = "
872
+ "text": "export type FASTContext<T> = "
873
873
  },
874
874
  {
875
875
  "kind": "Reference",
@@ -976,7 +976,7 @@
976
976
  "excerptTokens": [
977
977
  {
978
978
  "kind": "Content",
979
- "text": "export declare type FASTContextRequestStrategy = "
979
+ "text": "export type FASTContextRequestStrategy = "
980
980
  },
981
981
  {
982
982
  "kind": "Content",
@@ -1038,7 +1038,7 @@
1038
1038
  "excerptTokens": [
1039
1039
  {
1040
1040
  "kind": "Content",
1041
- "text": "export declare type UnknownContext = "
1041
+ "text": "export type UnknownContext = "
1042
1042
  },
1043
1043
  {
1044
1044
  "kind": "Reference",
@@ -250,7 +250,7 @@
250
250
  "excerptTokens": [
251
251
  {
252
252
  "kind": "Content",
253
- "text": "export declare type AsyncRegistrationLocator = "
253
+ "text": "export type AsyncRegistrationLocator = "
254
254
  },
255
255
  {
256
256
  "kind": "Content",
@@ -1487,7 +1487,7 @@
1487
1487
  },
1488
1488
  {
1489
1489
  "kind": "Content",
1490
- "text": "<{}>>(target: T & "
1490
+ "text": ">(target: T & "
1491
1491
  },
1492
1492
  {
1493
1493
  "kind": "Reference",
@@ -1523,7 +1523,7 @@
1523
1523
  },
1524
1524
  {
1525
1525
  "kind": "Content",
1526
- "text": "<{}>>(target: T_1 & "
1526
+ "text": ">(target: T_1 & "
1527
1527
  },
1528
1528
  {
1529
1529
  "kind": "Reference",
@@ -2108,7 +2108,7 @@
2108
2108
  "excerptTokens": [
2109
2109
  {
2110
2110
  "kind": "Content",
2111
- "text": "export declare type Injectable<T = "
2111
+ "text": "export type Injectable<T = "
2112
2112
  },
2113
2113
  {
2114
2114
  "kind": "Content",
@@ -2241,7 +2241,7 @@
2241
2241
  "excerptTokens": [
2242
2242
  {
2243
2243
  "kind": "Content",
2244
- "text": "export declare type Key = "
2244
+ "text": "export type Key = "
2245
2245
  },
2246
2246
  {
2247
2247
  "kind": "Reference",
@@ -2459,7 +2459,7 @@
2459
2459
  "excerptTokens": [
2460
2460
  {
2461
2461
  "kind": "Content",
2462
- "text": "export declare type ParentLocator = "
2462
+ "text": "export type ParentLocator = "
2463
2463
  },
2464
2464
  {
2465
2465
  "kind": "Content",
@@ -2494,7 +2494,7 @@
2494
2494
  "excerptTokens": [
2495
2495
  {
2496
2496
  "kind": "Content",
2497
- "text": "export declare type RegisterSelf<T extends "
2497
+ "text": "export type RegisterSelf<T extends "
2498
2498
  },
2499
2499
  {
2500
2500
  "kind": "Reference",
@@ -2695,7 +2695,7 @@
2695
2695
  },
2696
2696
  {
2697
2697
  "kind": "Content",
2698
- "text": "<{}>>(key: "
2698
+ "text": ">(key: "
2699
2699
  },
2700
2700
  {
2701
2701
  "kind": "Reference",
@@ -2731,7 +2731,7 @@
2731
2731
  },
2732
2732
  {
2733
2733
  "kind": "Content",
2734
- "text": "<{}>>(key: "
2734
+ "text": ">(key: "
2735
2735
  },
2736
2736
  {
2737
2737
  "kind": "Reference",
@@ -2961,7 +2961,7 @@
2961
2961
  "excerptTokens": [
2962
2962
  {
2963
2963
  "kind": "Content",
2964
- "text": "export declare type ResolveCallback<T = "
2964
+ "text": "export type ResolveCallback<T = "
2965
2965
  },
2966
2966
  {
2967
2967
  "kind": "Content",
@@ -3035,7 +3035,7 @@
3035
3035
  "excerptTokens": [
3036
3036
  {
3037
3037
  "kind": "Content",
3038
- "text": "export declare type Resolved<K> = "
3038
+ "text": "export type Resolved<K> = "
3039
3039
  },
3040
3040
  {
3041
3041
  "kind": "Content",
@@ -4724,7 +4724,7 @@
4724
4724
  "excerptTokens": [
4725
4725
  {
4726
4726
  "kind": "Content",
4727
- "text": "export declare type Transformer<K> = "
4727
+ "text": "export type Transformer<K> = "
4728
4728
  },
4729
4729
  {
4730
4730
  "kind": "Content",
@@ -5,7 +5,7 @@ import { Binding, BindingDirective } from "./binding.js";
5
5
  * The twoWay binding options.
6
6
  * @public
7
7
  */
8
- export declare type TwoWayBindingOptions = {
8
+ export type TwoWayBindingOptions = {
9
9
  changeEvent?: string;
10
10
  fromView?: (value: any) => any;
11
11
  };
@@ -29,12 +29,12 @@ declare const reflectMode = "reflect";
29
29
  * changes in the DOM, but does not reflect property changes back.
30
30
  * @public
31
31
  */
32
- export declare type AttributeMode = typeof reflectMode | typeof booleanMode | "fromView";
32
+ export type AttributeMode = typeof reflectMode | typeof booleanMode | "fromView";
33
33
  /**
34
34
  * Metadata used to configure a custom attribute's behavior.
35
35
  * @public
36
36
  */
37
- export declare type AttributeConfiguration = {
37
+ export type AttributeConfiguration = {
38
38
  property: string;
39
39
  attribute?: string;
40
40
  mode?: AttributeMode;
@@ -54,7 +54,7 @@ export declare const AttributeConfiguration: Readonly<{
54
54
  * Metadata used to configure a custom attribute's behavior through a decorator.
55
55
  * @public
56
56
  */
57
- export declare type DecoratorAttributeConfiguration = Omit<AttributeConfiguration, "property">;
57
+ export type DecoratorAttributeConfiguration = Omit<AttributeConfiguration, "property">;
58
58
  /**
59
59
  * A {@link ValueConverter} that converts to and from `boolean` values.
60
60
  * @remarks
@@ -32,7 +32,7 @@ export declare const TemplateOptions: {
32
32
  * Type for the `TemplateOptions` const enum.
33
33
  * @alpha
34
34
  */
35
- export declare type TemplateOptions = (typeof TemplateOptions)[keyof typeof TemplateOptions];
35
+ export type TemplateOptions = (typeof TemplateOptions)[keyof typeof TemplateOptions];
36
36
  /**
37
37
  * Lifecycle callbacks for template events.
38
38
  * @public
@@ -3,7 +3,7 @@ import { Constructable, ParameterDecorator } from "./interfaces.js";
3
3
  * A Context object defines an optional initial value for a Context, as well as a name identifier for debugging purposes.
4
4
  * @public
5
5
  */
6
- export declare type Context<T> = {
6
+ export type Context<T> = {
7
7
  readonly name: string;
8
8
  readonly initialValue?: T;
9
9
  };
@@ -13,13 +13,13 @@ export declare type Context<T> = {
13
13
  * resolving the associated dependency.
14
14
  * @public
15
15
  */
16
- export declare type ContextDecorator<T = any> = Readonly<Context<T>> & PropertyDecorator & ParameterDecorator;
16
+ export type ContextDecorator<T = any> = Readonly<Context<T>> & PropertyDecorator & ParameterDecorator;
17
17
  /**
18
18
  * A Context object defines an optional initial value for a Context, as well as a name identifier for debugging purposes.
19
19
  * The FASTContext can also be used as a decorator to declare context dependencies or as a key for DI.
20
20
  * @public
21
21
  */
22
- export declare type FASTContext<T> = ContextDecorator<T> & {
22
+ export type FASTContext<T> = ContextDecorator<T> & {
23
23
  get(target: EventTarget): T;
24
24
  provide(target: EventTarget, value: T): void;
25
25
  request(target: EventTarget, callback: ContextCallback<T>, multiple?: boolean): void;
@@ -31,7 +31,7 @@ export declare type FASTContext<T> = ContextDecorator<T> & {
31
31
  * By default this is handled via Context.dispatch, which dispatches a ContextEvent.
32
32
  * @public
33
33
  */
34
- export declare type FASTContextRequestStrategy = <T extends UnknownContext>(target: EventTarget, context: T, callback: ContextCallback<ContextType<T>>, multiple: any) => void;
34
+ export type FASTContextRequestStrategy = <T extends UnknownContext>(target: EventTarget, context: T, callback: ContextCallback<ContextType<T>>, multiple: any) => void;
35
35
  declare const contextEventType = "context-request";
36
36
  /**
37
37
  * Enables using:
@@ -130,18 +130,18 @@ export declare const Context: Readonly<{
130
130
  * An unknown context type.
131
131
  * @public
132
132
  */
133
- export declare type UnknownContext = Context<unknown>;
133
+ export type UnknownContext = Context<unknown>;
134
134
  /**
135
135
  * A helper type which can extract a Context value type from a Context type
136
136
  * @public
137
137
  */
138
- export declare type ContextType<T extends UnknownContext> = T extends Context<infer Y> ? Y : never;
138
+ export type ContextType<T extends UnknownContext> = T extends Context<infer Y> ? Y : never;
139
139
  /**
140
140
  * A callback which is provided by a context requester and is called with the value satisfying the request.
141
141
  * This callback can be called multiple times by context providers as the requested value is changed.
142
142
  * @public
143
143
  */
144
- export declare type ContextCallback<ValueType> = (value: ValueType, dispose?: () => void) => void;
144
+ export type ContextCallback<ValueType> = (value: ValueType, dispose?: () => void) => void;
145
145
  /**
146
146
  * An event fired by a context requester to signal it desires a named context.
147
147
  *
@@ -13,7 +13,7 @@ import { Constructable } from "../interfaces.js";
13
13
  * the callback needs a place or key against which to store state across resolutions.
14
14
  * @public
15
15
  */
16
- export declare type ResolveCallback<T = any> = (handler: Container, requestor: Container, resolver: Resolver<T>) => T;
16
+ export type ResolveCallback<T = any> = (handler: Container, requestor: Container, resolver: Resolver<T>) => T;
17
17
  interface ResolverLike<C, K = any> {
18
18
  readonly $isResolver: true;
19
19
  resolve(handler: C, requestor: C): Resolved<K>;
@@ -47,7 +47,7 @@ export interface Registration<K = any> {
47
47
  * to the requestor.
48
48
  * @public
49
49
  */
50
- export declare type Transformer<K> = (instance: Resolved<K>) => Resolved<K>;
50
+ export type Transformer<K> = (instance: Resolved<K>) => Resolved<K>;
51
51
  /**
52
52
  * Used by the default Resolver to create instances of objects when needed.
53
53
  * @public
@@ -274,7 +274,7 @@ export declare class ResolverBuilder<K> {
274
274
  * Represents an object that can register itself.
275
275
  * @public
276
276
  */
277
- export declare type RegisterSelf<T extends Constructable> = {
277
+ export type RegisterSelf<T extends Constructable> = {
278
278
  /**
279
279
  * Registers itself with the container.
280
280
  * @param container - The container to register with.
@@ -290,18 +290,18 @@ export declare type RegisterSelf<T extends Constructable> = {
290
290
  * A key that is used to register dependencies with a dependency injection container.
291
291
  * @public
292
292
  */
293
- export declare type Key = PropertyKey | object | ContextDecorator | Constructable | Resolver;
293
+ export type Key = PropertyKey | object | ContextDecorator | Constructable | Resolver;
294
294
  /**
295
295
  * Represents something resolved from a service locator.
296
296
  * @public
297
297
  */
298
- export declare type Resolved<K> = K extends ContextDecorator<infer T> ? T : K extends Constructable ? InstanceType<K> : K extends ResolverLike<any, infer T1> ? T1 extends Constructable ? InstanceType<T1> : T1 : K;
298
+ export type Resolved<K> = K extends ContextDecorator<infer T> ? T : K extends Constructable ? InstanceType<K> : K extends ResolverLike<any, infer T1> ? T1 extends Constructable ? InstanceType<T1> : T1 : K;
299
299
  /**
300
300
  * A class that declares constructor injected dependencies through
301
301
  * a static "inject" field array of keys.
302
302
  * @public
303
303
  */
304
- export declare type Injectable<T = {}> = Constructable<T> & {
304
+ export type Injectable<T = {}> = Constructable<T> & {
305
305
  inject?: Key[];
306
306
  };
307
307
  /**
@@ -310,12 +310,12 @@ export declare type Injectable<T = {}> = Constructable<T> & {
310
310
  * A container owner is usually an HTMLElement instance.
311
311
  * @public
312
312
  */
313
- export declare type ParentLocator = (owner: any) => Container | null;
313
+ export type ParentLocator = (owner: any) => Container | null;
314
314
  /**
315
315
  * A function capable of asynchronously locating a resolver for a key.
316
316
  * @public
317
317
  */
318
- export declare type AsyncRegistrationLocator = (key: Key) => Promise<Registration | null>;
318
+ export type AsyncRegistrationLocator = (key: Key) => Promise<Registration | null>;
319
319
  /**
320
320
  * Configuration for a dependency injection container.
321
321
  * @public
@@ -513,7 +513,7 @@ export declare const DI: Readonly<{
513
513
  *
514
514
  * @public
515
515
  */
516
- transient<T extends Constructable<{}>>(target: T & Partial<RegisterSelf<T>>): T & RegisterSelf<T>;
516
+ transient<T extends Constructable>(target: T & Partial<RegisterSelf<T>>): T & RegisterSelf<T>;
517
517
  /**
518
518
  * Registers the `target` class as a singleton dependency; the class will only be created once. Each
519
519
  * consecutive time the dependency is resolved, the same instance will be returned.
@@ -537,7 +537,7 @@ export declare const DI: Readonly<{
537
537
  *
538
538
  * @public
539
539
  */
540
- singleton<T_1 extends Constructable<{}>>(target: T_1 & Partial<RegisterSelf<T_1>>, options?: SingletonOptions): T_1 & RegisterSelf<T_1>;
540
+ singleton<T_1 extends Constructable>(target: T_1 & Partial<RegisterSelf<T_1>>, options?: SingletonOptions): T_1 & RegisterSelf<T_1>;
541
541
  }>;
542
542
  /**
543
543
  * The key that resolves the dependency injection Container itself.
@@ -596,7 +596,7 @@ export declare function transient<T extends Constructable>(): typeof transientDe
596
596
  * @public
597
597
  */
598
598
  export declare function transient<T extends Constructable>(target: T & Partial<RegisterSelf<T>>): T & RegisterSelf<T>;
599
- declare type SingletonOptions = {
599
+ type SingletonOptions = {
600
600
  scoped: boolean;
601
601
  };
602
602
  declare function singletonDecorator<T extends Constructable>(target: T & Partial<RegisterSelf<T>>): T & RegisterSelf<T>;
@@ -827,7 +827,7 @@ export declare const Registration: Readonly<{
827
827
  * @param key - The key to register the singleton under.
828
828
  * @param value - The class to instantiate as a singleton when first requested.
829
829
  */
830
- singleton<T_1 extends Constructable<{}>>(key: Key, value: T_1): Registration<InstanceType<T_1>>;
830
+ singleton<T_1 extends Constructable>(key: Key, value: T_1): Registration<InstanceType<T_1>>;
831
831
  /**
832
832
  * Creates an instance from a class.
833
833
  * Every time you request this {@link Key} you will get a new instance.
@@ -840,7 +840,7 @@ export declare const Registration: Readonly<{
840
840
  * @param key - The key to register the instance type under.
841
841
  * @param value - The class to instantiate each time the key is requested.
842
842
  */
843
- transient<T_2 extends Constructable<{}>>(key: Key, value: T_2): Registration<InstanceType<T_2>>;
843
+ transient<T_2 extends Constructable>(key: Key, value: T_2): Registration<InstanceType<T_2>>;
844
844
  /**
845
845
  * Delegates to a callback function to provide the dependency.
846
846
  * Every time you request this {@link Key} the callback will be invoked to provide
@@ -4,12 +4,12 @@ import { TrustedTypesPolicy } from "./interfaces.js";
4
4
  * A specific DOM sink guard for a node aspect.
5
5
  * @public
6
6
  */
7
- export declare type DOMSinkGuards = Record<string, (tagName: string | null, aspect: DOMAspect, aspectName: string, sink: DOMSink) => DOMSink>;
7
+ export type DOMSinkGuards = Record<string, (tagName: string | null, aspect: DOMAspect, aspectName: string, sink: DOMSink) => DOMSink>;
8
8
  /**
9
9
  * Aspect-specific guards for a DOM Policy.
10
10
  * @public
11
11
  */
12
- export declare type DOMAspectGuards = {
12
+ export type DOMAspectGuards = {
13
13
  /**
14
14
  * Guards for attributes.
15
15
  */
@@ -39,12 +39,12 @@ export declare type DOMAspectGuards = {
39
39
  * Element-specific guards for a DOM Policy.
40
40
  * @public
41
41
  */
42
- export declare type DOMElementGuards = Record<string, DOMAspectGuards>;
42
+ export type DOMElementGuards = Record<string, DOMAspectGuards>;
43
43
  /**
44
44
  * Guard configuration for a DOM Policy.
45
45
  * @public
46
46
  */
47
- export declare type DOMGuards = {
47
+ export type DOMGuards = {
48
48
  /**
49
49
  * Guards for specific elements.
50
50
  */
@@ -58,7 +58,7 @@ export declare type DOMGuards = {
58
58
  * Options for creating a DOM Policy.
59
59
  * @public
60
60
  */
61
- export declare type DOMPolicyOptions = {
61
+ export type DOMPolicyOptions = {
62
62
  /**
63
63
  * The trusted type to use for HTML creation.
64
64
  */
package/dist/dts/dom.d.ts CHANGED
@@ -36,12 +36,12 @@ export declare const DOMAspect: Readonly<{
36
36
  * The type of HTML aspect to target.
37
37
  * @public
38
38
  */
39
- export declare type DOMAspect = (typeof DOMAspect)[Exclude<keyof typeof DOMAspect, "none">];
39
+ export type DOMAspect = (typeof DOMAspect)[Exclude<keyof typeof DOMAspect, "none">];
40
40
  /**
41
41
  * A function used to send values to a DOM sink.
42
42
  * @public
43
43
  */
44
- export declare type DOMSink = (target: Node, aspectName: string, value: any, ...args: any[]) => void;
44
+ export type DOMSink = (target: Node, aspectName: string, value: any, ...args: any[]) => void;
45
45
  /**
46
46
  * A security policy that FAST can use to interact with the DOM.
47
47
  * @public
@@ -2,7 +2,7 @@
2
2
  * Represents a callable type such as a function or an object with a "call" method.
3
3
  * @public
4
4
  */
5
- export declare type Callable = typeof Function.prototype.call | {
5
+ export type Callable = typeof Function.prototype.call | {
6
6
  call(): void;
7
7
  };
8
8
  /**
@@ -10,14 +10,14 @@ export declare type Callable = typeof Function.prototype.call | {
10
10
  *
11
11
  * @public
12
12
  */
13
- export declare type Constructable<T = {}> = {
13
+ export type Constructable<T = {}> = {
14
14
  new (...args: any[]): T;
15
15
  };
16
16
  /**
17
17
  * Represents a constructable class with a prototype.
18
18
  * @public
19
19
  */
20
- export declare type Class<T, C = {}> = C & Constructable<T> & {
20
+ export type Class<T, C = {}> = C & Constructable<T> & {
21
21
  /**
22
22
  * The class's prototype;
23
23
  */
@@ -37,7 +37,7 @@ export interface Disposable {
37
37
  * A policy for use with the standard trustedTypes platform API.
38
38
  * @public
39
39
  */
40
- export declare type TrustedTypesPolicy = {
40
+ export type TrustedTypesPolicy = {
41
41
  /**
42
42
  * Creates trusted HTML.
43
43
  * @param html - The HTML to clear as trustworthy.
@@ -48,14 +48,14 @@ export declare type TrustedTypesPolicy = {
48
48
  * Reverses all readonly members, making them mutable.
49
49
  * @public
50
50
  */
51
- export declare type Mutable<T> = {
51
+ export type Mutable<T> = {
52
52
  -readonly [P in keyof T]: T[P];
53
53
  };
54
54
  /**
55
55
  * A temporary type as a workaround for the TS compiler's erroneous built-in ParameterDecorator type.
56
56
  * @public
57
57
  */
58
- export declare type ParameterDecorator = (target: Object, propertyKey: string | undefined, parameterIndex: number) => void;
58
+ export type ParameterDecorator = (target: Object, propertyKey: string | undefined, parameterIndex: number) => void;
59
59
  /**
60
60
  * The FAST global.
61
61
  * @public
@@ -97,7 +97,7 @@ export interface FASTGlobal {
97
97
  * Core services that can be shared across FAST instances.
98
98
  * @internal
99
99
  */
100
- declare type KernelServiceId = {
100
+ type KernelServiceId = {
101
101
  readonly updateQueue: string | number;
102
102
  readonly observable: string | number;
103
103
  readonly contextEvent: string | number;
@@ -69,7 +69,7 @@ export declare const SpliceStrategySupport: Readonly<{
69
69
  * The available values for SpliceStrategySupport.
70
70
  * @public
71
71
  */
72
- export declare type SpliceStrategySupport = (typeof SpliceStrategySupport)[keyof typeof SpliceStrategySupport];
72
+ export type SpliceStrategySupport = (typeof SpliceStrategySupport)[keyof typeof SpliceStrategySupport];
73
73
  /**
74
74
  * An approach to tracking changes in an array.
75
75
  * @public
@@ -26,7 +26,7 @@ export interface Accessor {
26
26
  * against source data and within an execution context.
27
27
  * @public
28
28
  */
29
- export declare type Expression<TSource = any, TReturn = any, TParent = any> = (source: TSource, context: ExecutionContext<TParent>) => TReturn;
29
+ export type Expression<TSource = any, TReturn = any, TParent = any> = (source: TSource, context: ExecutionContext<TParent>) => TReturn;
30
30
  /**
31
31
  * A record of observable property access.
32
32
  * @public
@@ -60,7 +60,7 @@ export declare const SourceLifetime: Readonly<{
60
60
  * Describes how the source's lifetime relates to its controller's lifetime.
61
61
  * @public
62
62
  */
63
- export declare type SourceLifetime = (typeof SourceLifetime)[keyof typeof SourceLifetime];
63
+ export type SourceLifetime = (typeof SourceLifetime)[keyof typeof SourceLifetime];
64
64
  /**
65
65
  * Controls the lifecycle of an expression and provides relevant context.
66
66
  * @public
@@ -4,7 +4,7 @@ import type { Subscriber } from "../observation/notifier.js";
4
4
  * Options for creating state.
5
5
  * @beta
6
6
  */
7
- export declare type StateOptions = {
7
+ export type StateOptions = {
8
8
  /**
9
9
  * Indicates whether to deeply make the state value observable.
10
10
  */
@@ -18,7 +18,7 @@ export declare type StateOptions = {
18
18
  * A readonly stateful value.
19
19
  * @beta
20
20
  */
21
- export declare type ReadonlyState<T> = {
21
+ export type ReadonlyState<T> = {
22
22
  /**
23
23
  * Gets the current state value.
24
24
  */
@@ -32,7 +32,7 @@ export declare type ReadonlyState<T> = {
32
32
  * A read/write stateful value.
33
33
  * @beta
34
34
  */
35
- export declare type State<T> = ReadonlyState<T> & {
35
+ export type State<T> = ReadonlyState<T> & {
36
36
  /**
37
37
  * Gets or sets the current state value.
38
38
  */
@@ -59,7 +59,7 @@ export declare function state<T>(value: T, options?: string | StateOptions): Sta
59
59
  * A readonly stateful value associated with an object owner.
60
60
  * @beta
61
61
  */
62
- export declare type ReadonlyOwnedState<T> = {
62
+ export type ReadonlyOwnedState<T> = {
63
63
  /**
64
64
  * Gets the current stateful value for the owner.
65
65
  */
@@ -69,7 +69,7 @@ export declare type ReadonlyOwnedState<T> = {
69
69
  * A read/write stateful value associated with an owner.
70
70
  * @beta
71
71
  */
72
- export declare type OwnedState<T> = ReadonlyOwnedState<T> & {
72
+ export type OwnedState<T> = ReadonlyOwnedState<T> & {
73
73
  /**
74
74
  * Sets
75
75
  * @param owner - The object to set the state for the owner.
@@ -93,7 +93,7 @@ export declare function ownedState<T>(value: T | (() => T), options?: string | S
93
93
  * State whose value is computed from other dependencies.
94
94
  * @beta
95
95
  */
96
- export declare type ComputedState<T> = ReadonlyState<T> & Disposable & {
96
+ export type ComputedState<T> = ReadonlyState<T> & Disposable & {
97
97
  /**
98
98
  * Subscribes to notification of changes in the state.
99
99
  * @param subscriber - The object that is subscribing for change notification.
@@ -109,12 +109,12 @@ export declare type ComputedState<T> = ReadonlyState<T> & Disposable & {
109
109
  * A callback that enables computation setup.
110
110
  * @beta
111
111
  */
112
- export declare type ComputedSetupCallback = () => (() => void) | void;
112
+ export type ComputedSetupCallback = () => (() => void) | void;
113
113
  /**
114
114
  * Provides computed state capabilities.
115
115
  * @beta
116
116
  */
117
- export declare type ComputedBuilder = {
117
+ export type ComputedBuilder = {
118
118
  /**
119
119
  * Callbacks related to computed state.
120
120
  */
@@ -130,7 +130,7 @@ export declare type ComputedBuilder = {
130
130
  * A callback that initializes the computation.
131
131
  * @beta
132
132
  */
133
- export declare type ComputedInitializer<T> = (builder: ComputedBuilder) => () => T;
133
+ export type ComputedInitializer<T> = (builder: ComputedBuilder) => () => T;
134
134
  /**
135
135
  * Creates a ComputedState.
136
136
  * @param initialize - The initialization callback.