stock-bot/libs/core/handlers/src/index.ts
2026-10-20 12:39:38 -04:00

33 lines
897 B
TypeScript

// Export only what's actually used
export { BaseHandler } from './base/BaseHandler';
export {
Handler,
Operation,
QueueSchedule,
ScheduledOperation,
Disabled,
} from './decorators/decorators';
export { RateLimit } from './decorators/rate-limit';
export type {
RateLimitConfig,
RateLimitWindow,
RateLimitOptions
} from './decorators/rate-limit';
export { createJobHandler } from './utils/create-job-handler';
export type { IServiceContainer, ServiceTypes } from '@stock-bot/services';
// Re-export commonly used types from @stock-bot/types for convenience
export type {
ExecutionContext,
IHandler,
JobHandler,
HandlerConfig,
HandlerConfigWithSchedule,
HandlerMetadata,
OperationMetadata,
ScheduledJob,
TypedJobHandler,
} from '@stock-bot/types';
// Re-export JobScheduleOptions from BaseHandler
export type { JobScheduleOptions } from './base/BaseHandler';