TESSA Web API
    Preparing search index...

    Type Alias ExtensionContainerRegisterParams<E>

    type ExtensionContainerRegisterParams<E extends Extension> = {
        extension: new (...params: unknown[]) => E;
        extensionName?: string;
        extensionType?: string | AbstractNewable;
        order?: number;
        singleton?: boolean;
        stage?: ExtensionStage;
        when?: ExtensionRegisterPredicate<E> | ExtensionRegisterPredicate<E>[];
    }

    Type Parameters

    Index

    Properties

    extension: new (...params: unknown[]) => E

    The extension that needs to be registered in the container.

    extensionName?: string

    Type of registered extension.

    extensionType?: string | AbstractNewable

    The name of the extension being registered.

    order?: number

    The order of execution, taking into account the type of extension and the stage of execution.

    singleton?: boolean

    A flag indicating the lifetime of an instance of extensions.

    The stage of the extension execution in the extension chain.

    Function or array of functions that accept the context of extension execution and allowing extensions to be performed only under certain conditions. If `true', then the lifetime of the extension instance will coincide with the lifetime of the container.