What every enhancer call returns. api is the first instance's API (or null when nothing matched), the common case for framework bindings, which always enhance a single root. instances carries one entry per enhanced root for callers that enhance a whole container.

interface EnhancerHandle<Api = null> {
    api: null | Api;
    destroy: Disposer;
    instances: EnhancerInstance<Api>[];
}

Type Parameters

  • Api = null

Properties

Properties

api: null | Api

The first enhanced root's API, or null when nothing matched.

destroy: Disposer

Tear down every instance this call created.

instances: EnhancerInstance<Api>[]

One entry per enhanced root, in document order.