@stimulus-library/controllers
Version:
A library of useful controllers for Stimulus
18 lines (17 loc) • 613 B
TypeScript
import { LoadBlockController } from "./load_block_controller";
export declare class AsyncBlockController extends LoadBlockController {
static targets: string[];
static values: {
endpoint: StringConstructor;
errorMessage: StringConstructor;
selector: StringConstructor;
maxRetries: NumberConstructor;
};
readonly replaceTarget: HTMLElement;
readonly hasReplaceTarget: boolean;
readonly endpointValue: string;
readonly hasErrorMessageValue: boolean;
readonly errorMessageValue: string;
get _errorMessage(): string;
connect(): Promise<void>;
}