@stimulus-library/controllers
Version:
A library of useful controllers for Stimulus
26 lines (25 loc) • 835 B
TypeScript
import { type Duration } from "date-fns";
import { BaseController } from "@stimulus-library/utilities";
export declare class DurationController extends BaseController {
static values: {
timestamp: NumberConstructor;
minutes: BooleanConstructor;
seconds: BooleanConstructor;
};
readonly minutesValue: boolean;
readonly hasMinutesValue: boolean;
readonly secondsValue: boolean;
readonly hasSecondsValue: boolean;
timestampValue: number;
readonly hasTimestampValue: boolean;
_clearInterval: () => void;
get _format(): (keyof Duration)[];
get _output(): string;
get _seconds(): boolean;
get _minutes(): boolean;
get _timestamp(): Date;
get _duration(): Duration;
get _tickInterval(): 1000 | 15000 | 120000;
connect(): void;
_update(): void;
}