Interface KosCompanionAware<TParent>

Base interface for all companion models. Provides the getCompanionParent() method available in both decorator and composition modes.

interface KosCompanionAware<TParent> {
    getCompanionParent(): TParent;
}

Type Parameters

  • TParent extends IKosDataModel = IKosDataModel

Hierarchy (view full)

Methods

  • Gets the companion's parent model instance. Available in both decorator and composition modes. Provides access to the model this companion extends.

    Returns TParent

    The parent model instance that this companion enhances