Options for an object that performs extensions of the specified type IExtensionExecutor.

interface ExtensionExecutorOptions {
    extensionsFilter?:
        | null
        | <E extends Extension<ExtensionContext>>(
            extensions: readonly IExtensionInstance<E>[],
        ) => IExtensionInstance<E>[];
    extensionsSort?:
        | null
        | <E extends Extension<ExtensionContext>>(
            instances: IExtensionInstance<E>[],
        ) => void;
    processError?: (result: ValidationResult) => Promise<void>;
    throwIfAsyncMethodCalledSynchronously?: boolean;
    trace?: boolean;
    traceFilterExtensionTypes?: null | string[];
    useCancellationContext?: boolean;
}

Properties

extensionsFilter?:
    | null
    | <E extends Extension<ExtensionContext>>(
        extensions: readonly IExtensionInstance<E>[],
    ) => IExtensionInstance<E>[]

Filters the final list of extensions when resolving.

extensionsSort?:
    | null
    | <E extends Extension<ExtensionContext>>(
        instances: IExtensionInstance<E>[],
    ) => void

Sorts the final list of extensions when resolving.

processError?: (result: ValidationResult) => Promise<void>

An error handler that occurs when executing extension chains.

throwIfAsyncMethodCalledSynchronously?: boolean

If the flag is set, then an exception will be thrown if the asynchronous extension method is called synchronously.

trace?: boolean

Enables extension execution tracing.

traceFilterExtensionTypes?: null | string[]

Types of extensions that should be included in the trace.

useCancellationContext?: boolean

Indicates the need to use cancellation context to track cancellations.

MMNEPVFCICPMFPCPTTAAATR