refactor(crawler): 优化爬虫类型定义和接口导出

将 Crawler 接口替换为 AnyCrawler 类型,统一爬虫类型定义
导出 CrawlInfoAddStats 接口以便其他模块使用
简化爬虫调用方式,使用类型断言替代接口方法调用
This commit is contained in:
dmy
2026-01-14 22:51:36 +08:00
parent 82f5a81887
commit f736f30248
2 changed files with 6 additions and 9 deletions

View File

@@ -15,7 +15,7 @@ interface SourceResult {
source: string;
}
interface CrawlInfoAddStats {
export interface CrawlInfoAddStats {
source: string;
count: number;
latestUpdate: Date | string;