typings.d.ts 674 B

1234567891011121314151617181920
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. export type TimeType = keyof Cron;
  6. export interface Cron {
  7. second?: CronValue;
  8. minute?: CronValue;
  9. hour?: CronValue;
  10. day?: CronValue;
  11. month?: CronValue;
  12. week?: CronValue;
  13. }
  14. export type CronValue = '*' | `${number}` | `${number}-${number}` | `${number}/${number}` | string;
  15. export interface CronChangeType {
  16. label: TimeType;
  17. value: CronValue;
  18. }
  19. export type NzCronExpressionSize = 'large' | 'default' | 'small';
  20. export type NzCronExpressionType = 'linux' | 'spring';