import type {ActionHandler, TickIntervalDecoratorFlag} from "../module"; export interface OnTickMethodDecorator extends Omit, "name"> { readonly name: "onTick"; } /** * For *onTick() action only, to specify to tick interval in second. */ export function Interval(second: number) { return function (target: Fn, _: OnTickMethodDecorator) { Reflect.defineProperty(target, "tickInterval", { value: second, writable: false, }); }; }