react-cron-generator
Version:
A powerful React component for building cron expressions with support for both Unix (5 fields) and Quartz (7 fields) formats. Features validation, format conversion, TypeScript support, and accessibility.
20 lines • 610 B
TypeScript
import React from 'react';
import { HeaderKeyType, HeaderValType } from './meta';
export interface CronProp {
value?: string;
onChange(val: string, text: string): void;
showResultText: boolean;
showResultCron: boolean;
translateFn?(key: string): string;
locale?: string;
options?: {
headers: HeaderKeyType[];
};
disabled?: boolean;
isUnix?: boolean;
use6FieldQuartz?: boolean;
onHeaderChange?(header: HeaderValType): void;
}
declare const Cron: React.FunctionComponent<CronProp>;
export default Cron;
//# sourceMappingURL=cron.d.ts.map