Type Alias Enhancer<Options, Api>

Enhancer: (
    container?: Document | HTMLElement,
    options?: Partial<Options>,
) => EnhancerHandle<Api> & {
    definition: Readonly<EnhancerDefinition<Options, Api>>;
}

The callable produced by defineEnhancer: enhances a container and returns a handle. Its definition exposes the name, selector, defaults, and attribute schema so tooling (docs, the auto-loader) can introspect it.

Type Parameters

  • Options extends object = Record<string, never>
  • Api = null