refactor(crawler): 优化爬虫类型定义和接口导出
将 Crawler 接口替换为 AnyCrawler 类型,统一爬虫类型定义 导出 CrawlInfoAddStats 接口以便其他模块使用 简化爬虫调用方式,使用类型断言替代接口方法调用
This commit is contained in:
@@ -15,7 +15,7 @@ interface SourceResult {
|
||||
source: string;
|
||||
}
|
||||
|
||||
interface CrawlInfoAddStats {
|
||||
export interface CrawlInfoAddStats {
|
||||
source: string;
|
||||
count: number;
|
||||
latestUpdate: Date | string;
|
||||
|
||||
Reference in New Issue
Block a user