An object that performs extensions of the specified type.

Type Parameters

Hierarchy

  • ExtensionExecutor

Implements

Constructors

Accessors

  • get length(): number
  • The number of registered extensions of a certain type.

    Returns number

Methods

  • Releases all related objects.

    Returns void

  • Executes the specified method asynchronously for all registered extensions of a certain type.

    Type Parameters

    • M extends string | number | symbol

    • C extends unknown

    Parameters

    • method: M

      An extension method that can be executed.

    • context: C

      Parameter of the executed method passed between extensions.

    Returns void

  • Executes the specified method asynchronously for all registered extensions of a certain type.

    Type Parameters

    • M extends string | number | symbol

    • C extends unknown

    Parameters

    • method: M

      An extension method that can be executed.

    • context: C

      Parameter of the executed method passed between extensions.

    Returns Promise<void>

  • Executes the specified method asynchronously for all registered extensions of a certain type and intercepts all exceptions during method execution.

    Returns

    The result of executing the specified method for all registered extensions of a certain type.

    Type Parameters

    • M extends string | number | symbol

    • C extends unknown

    Parameters

    • method: M

      An extension method that can be executed.

    • context: C

      Parameter of the executed method passed between extensions.

    • showErrors: boolean = true

      Flag indicating the need to handle errors when they occur according to the settings of the execution object. For example, to output errors to the user.

    Returns ValidationResult

  • Executes the specified method asynchronously for all registered extensions of a certain type and intercepts all exceptions during method execution.

    Returns

    The result of executing the specified method for all registered extensions of a certain type.

    Type Parameters

    • M extends string | number | symbol

    • C extends unknown

    Parameters

    • method: M

      An extension method that can be executed.

    • context: C

      Parameter of the executed method passed between extensions.

    • showErrors: boolean = true

      Flag indicating the need to handle errors when they occur according to the settings of the execution object. For example, to output errors to the user.

    Returns Promise<ValidationResult>

  • Returns all extensions registered by extensions of a certain type taking into account the passed parameter of the executed method.

    Returns

    All extensions registered extensions of a certain type.

    Parameters

    Returns E[]

  • Returns all extensions registered by extensions of a certain type taking into account the passed parameter of the executed method.

    Returns

    All extensions registered extensions of a certain type.

    Parameters

    Returns Promise<E[]>

Generated using TypeDoc