import {type ActionHandler, type TickIntervalDecoratorFlag} from "../module"; type OnTickHandlerDecorator = (target: object, propertyKey: "onTick", descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor; /** * For *onTick() action only, to specify to tick interval in second. */ export function Interval(second: number): OnTickHandlerDecorator { return (target, propertyKey, descriptor) => { descriptor.value!.tickInterval = second; return descriptor; }; }