TESSA Web API
    Preparing search index...

    Interface IExtensionInstance<E>

    Container for an instance of an extension of the specified type.

    interface IExtensionInstance<E extends Extension = Extension> {
        extension: Newable<E>;
        extensionName: string;
        extensionType: string;
        order: number;
        singleton: boolean;
        stage: ExtensionStage;
        when?: ExtensionRegisterPredicate<E, ExtractExtensionContext<E>>[];
        dispose(): void;
        getExtension(): E;
        getExtensionAsync(): Promise<E>;
    }

    Type Parameters

    Implemented by

    Index

    Properties

    extension: Newable<E>

    Extension instance type.

    extensionName: string

    Name of the extension instance of the specified type.

    extensionType: string

    Name of the extension instance type.

    order: number

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

    singleton: boolean

    Flag indicating the lifetime of an instance of extensions. If `true', then the lifetime of the extension instance will coincide with the lifetime of the maintainer.

    The stage of extension execution in the extension chain.

    Array of functions accepting the context of extensions execution and allowing extensions to be performed only under certain conditions.

    Methods

    • Releases all related objects.

      Returns void

    • Returns an instance of an extension of the specified type.

      Returns E

    • Returns an instance of an extension of the specified type.

      Returns Promise<E>