cronstrue
Version:
Convert cron expressions into human readable descriptions
31 lines (30 loc) • 1.75 kB
TypeScript
import { Options } from "./options";
import { Locale } from "./i18n/locale";
import { LocaleLoader } from "./i18n/localeLoader";
export declare class ExpressionDescriptor {
static locales: {
[ ]: Locale;
};
static specialCharacters: string[];
expression: string;
expressionParts: string[];
options: Options;
i18n: Locale;
static toString(expression: string, { throwExceptionOnParseError, verbose, dayOfWeekStartIndexZero, use24HourTimeFormat, locale, }?: Options): string;
static initialize(localesLoader: LocaleLoader): void;
constructor(expression: string, options: Options);
protected getFullDescription(): string;
protected getTimeOfDayDescription(): string;
protected getSecondsDescription(): string;
protected getMinutesDescription(): string;
protected getHoursDescription(): string;
protected getDayOfWeekDescription(): string;
protected getMonthDescription(): string;
protected getDayOfMonthDescription(): string;
protected getYearDescription(): string;
protected getSegmentDescription(expression: string, allDescription: string, getSingleItemDescription: (t: string) => string, getIncrementDescriptionFormat: (t: string) => string, getRangeDescriptionFormat: (t: string) => string, getDescriptionFormat: (t: string) => string): string;
protected generateRangeSegmentDescription(rangeExpression: string, getRangeDescriptionFormat: (t: string) => string, getSingleItemDescription: (t: string) => string): string;
protected formatTime(hourExpression: string, minuteExpression: string, secondExpression: string): string;
protected transformVerbosity(description: string, useVerboseFormat: boolean): string;
private getPeriod;
}