commit 2 refactor
This commit is contained in:
parent
588f666943
commit
32e43c9243
310 changed files with 33318 additions and 31189 deletions
|
|
@ -3,16 +3,18 @@
|
|||
* Pure types for handler metadata and registration
|
||||
*/
|
||||
|
||||
import type { JobHandler, ScheduledJob } from '@stock-bot/types';
|
||||
import type {
|
||||
DecoratedHandlerClass,
|
||||
HandlerRateLimitConfig,
|
||||
JobHandler,
|
||||
RateLimitWindow,
|
||||
ScheduledJob,
|
||||
} from '@stock-bot/types';
|
||||
|
||||
/**
|
||||
* Rate limit configuration
|
||||
*/
|
||||
export interface RateLimitConfig {
|
||||
points: number;
|
||||
duration: number;
|
||||
blockDuration?: number;
|
||||
}
|
||||
export type RateLimitConfig = HandlerRateLimitConfig & Partial<RateLimitWindow>;
|
||||
|
||||
/**
|
||||
* Metadata for a single operation within a handler
|
||||
|
|
@ -72,6 +74,6 @@ export interface RegistryStats {
|
|||
*/
|
||||
export interface HandlerDiscoveryResult {
|
||||
handler: HandlerMetadata;
|
||||
constructor: any;
|
||||
constructor: DecoratedHandlerClass;
|
||||
filePath?: string;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue