@stimulus-library/mixins
Version:
A library of useful controllers for Stimulus
11 lines (10 loc) • 688 B
TypeScript
import { Controller } from "@hotwired/stimulus";
export declare function useInjectedFragment(controller: Controller, targetElement: HTMLElement, insertPosition: InsertPosition, fragment: DocumentFragment, options?: {
cleanup?: boolean;
}): [ChildNode[], () => void];
export declare function useInjectedHTML(controller: Controller, targetElement: HTMLElement, insertPosition: InsertPosition, html: string, options?: {
cleanup?: boolean;
}): [ChildNode[], () => void];
export declare function useInjectedElement(controller: Controller, targetElement: HTMLElement, insertPosition: InsertPosition, element: HTMLElement, options?: {
cleanup?: boolean;
}): [ChildNode, () => void];