@ni/fast-foundation 0.0.4 → 0.0.6

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.
@@ -449,7 +449,7 @@ export declare const DI: Readonly<{
449
449
  * The created key can be used as a property decorator or constructor parameter decorator,
450
450
  * in addition to its standard use in an inject array or through direct container APIs.
451
451
  */
452
- createInterface<K extends Key>(nameConfigOrCallback?: string | InterfaceConfiguration | ((builder: ResolverBuilder<K>) => Resolver<K>) | undefined, configuror?: ((builder: ResolverBuilder<K>) => Resolver<K>) | undefined): InterfaceSymbol<K>;
452
+ createInterface<K extends Key>(nameConfigOrCallback?: string | ((builder: ResolverBuilder<K>) => Resolver<K>) | InterfaceConfiguration, configuror?: (builder: ResolverBuilder<K>) => Resolver<K>): InterfaceSymbol<K>;
453
453
  /**
454
454
  * A decorator that specifies what to inject into its target.
455
455
  * @param dependencies - The dependencies to inject.
@@ -486,7 +486,7 @@ export declare const DI: Readonly<{
486
486
  *
487
487
  * @public
488
488
  */
489
- transient<T extends Constructable<{}>>(target: T & Partial<RegisterSelf<T>>): T & RegisterSelf<T>;
489
+ transient<T extends Constructable>(target: T & Partial<RegisterSelf<T>>): T & RegisterSelf<T>;
490
490
  /**
491
491
  * Registers the `target` class as a singleton dependency; the class will only be created once. Each
492
492
  * consecutive time the dependency is resolved, the same instance will be returned.
@@ -510,7 +510,7 @@ export declare const DI: Readonly<{
510
510
  *
511
511
  * @public
512
512
  */
513
- singleton<T_1 extends Constructable<{}>>(target: T_1 & Partial<RegisterSelf<T_1>>, options?: SingletonOptions): T_1 & RegisterSelf<T_1>;
513
+ singleton<T_1 extends Constructable>(target: T_1 & Partial<RegisterSelf<T_1>>, options?: SingletonOptions): T_1 & RegisterSelf<T_1>;
514
514
  }>;
515
515
  /**
516
516
  * The interface key that resolves the dependency injection container itself.
@@ -791,7 +791,7 @@ export declare const Registration: Readonly<{
791
791
  * @param key - The key to register the singleton under.
792
792
  * @param value - The class to instantiate as a singleton when first requested.
793
793
  */
794
- singleton<T_1 extends Constructable<{}>>(key: Key, value: T_1): Registration<InstanceType<T_1>>;
794
+ singleton<T_1 extends Constructable>(key: Key, value: T_1): Registration<InstanceType<T_1>>;
795
795
  /**
796
796
  * Creates an instance from a class.
797
797
  * Every time you request this {@link Key} you will get a new instance.
@@ -804,7 +804,7 @@ export declare const Registration: Readonly<{
804
804
  * @param key - The key to register the instance type under.
805
805
  * @param value - The class to instantiate each time the key is requested.
806
806
  */
807
- transient<T_2 extends Constructable<{}>>(key: Key, value: T_2): Registration<InstanceType<T_2>>;
807
+ transient<T_2 extends Constructable>(key: Key, value: T_2): Registration<InstanceType<T_2>>;
808
808
  /**
809
809
  * Delegates to a callback function to provide the dependency.
810
810
  * Every time you request this {@link Key} the callback will be invoked to provide
@@ -26,8 +26,8 @@ function isElementRegistry(obj) {
26
26
  * Yields control to the caller one Microtask later, in order to
27
27
  * ensure that the DOM has settled.
28
28
  */
29
- export function fixture(templateNameOrRegistry, options = {}) {
30
- return __awaiter(this, void 0, void 0, function* () {
29
+ export function fixture(templateNameOrRegistry_1) {
30
+ return __awaiter(this, arguments, void 0, function* (templateNameOrRegistry, options = {}) {
31
31
  const document = options.document || globalThis.document;
32
32
  const parent = options.parent || document.createElement("div");
33
33
  const source = options.source || {};
@@ -2,8 +2,8 @@ import { __awaiter } from "tslib";
2
2
  /**
3
3
  * Timeout for use in async tets.
4
4
  */
5
- export function timeout(timeout = 0) {
6
- return __awaiter(this, void 0, void 0, function* () {
5
+ export function timeout() {
6
+ return __awaiter(this, arguments, void 0, function* (timeout = 0) {
7
7
  return new Promise((resolve, reject) => {
8
8
  window.setTimeout(() => {
9
9
  resolve(void 0);
@@ -3448,7 +3448,7 @@ export declare const DI: Readonly<{
3448
3448
  * The created key can be used as a property decorator or constructor parameter decorator,
3449
3449
  * in addition to its standard use in an inject array or through direct container APIs.
3450
3450
  */
3451
- createInterface<K extends Key>(nameConfigOrCallback?: string | InterfaceConfiguration | ((builder: ResolverBuilder<K>) => Resolver<K>) | undefined, configuror?: ((builder: ResolverBuilder<K>) => Resolver<K>) | undefined): InterfaceSymbol<K>;
3451
+ createInterface<K extends Key>(nameConfigOrCallback?: string | ((builder: ResolverBuilder<K>) => Resolver<K>) | InterfaceConfiguration, configuror?: (builder: ResolverBuilder<K>) => Resolver<K>): InterfaceSymbol<K>;
3452
3452
  /**
3453
3453
  * A decorator that specifies what to inject into its target.
3454
3454
  * @param dependencies - The dependencies to inject.
@@ -3485,7 +3485,7 @@ export declare const DI: Readonly<{
3485
3485
  *
3486
3486
  * @public
3487
3487
  */
3488
- transient<T extends Constructable<{}>>(target: T & Partial<RegisterSelf<T>>): T & RegisterSelf<T>;
3488
+ transient<T extends Constructable>(target: T & Partial<RegisterSelf<T>>): T & RegisterSelf<T>;
3489
3489
  /**
3490
3490
  * Registers the `target` class as a singleton dependency; the class will only be created once. Each
3491
3491
  * consecutive time the dependency is resolved, the same instance will be returned.
@@ -3509,7 +3509,7 @@ export declare const DI: Readonly<{
3509
3509
  *
3510
3510
  * @public
3511
3511
  */
3512
- singleton<T_1 extends Constructable<{}>>(target: T_1 & Partial<RegisterSelf<T_1>>, options?: SingletonOptions): T_1 & RegisterSelf<T_1>;
3512
+ singleton<T_1 extends Constructable>(target: T_1 & Partial<RegisterSelf<T_1>>, options?: SingletonOptions): T_1 & RegisterSelf<T_1>;
3513
3513
  }>;
3514
3514
 
3515
3515
  /**
@@ -3962,7 +3962,7 @@ declare interface ElementInternals_2 {
3962
3962
  * it to indicate problems with the constraints of internals target
3963
3963
  * element when the form owner is validated interactively or reportValidity() is called.
3964
3964
  */
3965
- setValidity(flags: ValidityStateFlags, message?: string, anchor?: HTMLElement): void;
3965
+ setValidity(flags: ValidityStateFlags_2, message?: string, anchor?: HTMLElement): void;
3966
3966
  }
3967
3967
 
3968
3968
  declare let ElementInternals_2: {
@@ -7125,7 +7125,7 @@ export declare const Registration: Readonly<{
7125
7125
  * @param key - The key to register the singleton under.
7126
7126
  * @param value - The class to instantiate as a singleton when first requested.
7127
7127
  */
7128
- singleton<T_1 extends Constructable<{}>>(key: Key, value: T_1): Registration<InstanceType<T_1>>;
7128
+ singleton<T_1 extends Constructable>(key: Key, value: T_1): Registration<InstanceType<T_1>>;
7129
7129
  /**
7130
7130
  * Creates an instance from a class.
7131
7131
  * Every time you request this {@link Key} you will get a new instance.
@@ -7138,7 +7138,7 @@ export declare const Registration: Readonly<{
7138
7138
  * @param key - The key to register the instance type under.
7139
7139
  * @param value - The class to instantiate each time the key is requested.
7140
7140
  */
7141
- transient<T_2 extends Constructable<{}>>(key: Key, value: T_2): Registration<InstanceType<T_2>>;
7141
+ transient<T_2 extends Constructable>(key: Key, value: T_2): Registration<InstanceType<T_2>>;
7142
7142
  /**
7143
7143
  * Delegates to a callback function to provide the dependency.
7144
7144
  * Every time you request this {@link Key} the callback will be invoked to provide
@@ -9699,7 +9699,7 @@ export declare function validateKey(key: any): void;
9699
9699
  *
9700
9700
  * When TypeScript adds support for these APIs we can delete this file.
9701
9701
  */
9702
- declare interface ValidityStateFlags {
9702
+ declare interface ValidityStateFlags_2 {
9703
9703
  badInput?: boolean;
9704
9704
  customError?: boolean;
9705
9705
  patternMismatch?: boolean;