stock-bot/libs/core/handlers/src/index.ts

26 lines
659 B
TypeScript

// Export only what's actually used
export { BaseHandler } from './base/BaseHandler';
export {
Handler,
Operation,
QueueSchedule,
ScheduledOperation,
Disabled,
} from './decorators/decorators';
export { createJobHandler } from './utils/create-job-handler';
// 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';