UNPKG

@eggjs/tegg-schedule-decorator

Version:

tegg schedule decorator

10 lines (9 loc) 646 B
import type { EggProtoImplClass, ScheduleOptions, ScheduleParams } from '@eggjs/tegg-types'; export declare class ScheduleInfoUtil { static isSchedule(clazz: EggProtoImplClass): boolean; static setIsSchedule(isSchedule: boolean, clazz: EggProtoImplClass): void; static setScheduleParams<T>(scheduleParams: ScheduleParams<T>, clazz: EggProtoImplClass): void; static setScheduleOptions(scheduleParams: ScheduleOptions, clazz: EggProtoImplClass): void; static getScheduleOptions(clazz: EggProtoImplClass): ScheduleOptions | undefined; static getScheduleParams(clazz: EggProtoImplClass): ScheduleParams<object> | undefined; }