@stimulus-library/utilities
Version:
A library of useful controllers for Stimulus
12 lines (11 loc) • 469 B
TypeScript
import { Context, Controller } from "@hotwired/stimulus";
export declare class BaseController extends Controller {
constructor(context: Context);
get el(): HTMLElement;
get isTurboPreview(): boolean;
get isTurbolinksPreview(): boolean;
get csrfToken(): string | null;
metaValue(name: string): string | null;
eventName(eventName: string): string;
dispatchEvent(element: HTMLElement, eventName: string, options?: CustomEventInit): void;
}