obsidian-douban/src/org/wanxp/douban/data/handler/DoubanSubjectLoadHandler.ts
wanxp 5c345efa1d 1. fix sync movie fetch wrong type
2. fix can not get the comment of book or movie
2023-09-23 09:21:46 +08:00

15 lines
407 B
TypeScript

import DoubanSubject from "../model/DoubanSubject";
import HandleContext from "../model/HandleContext";
import HandleResult from "../model/HandleResult";
export default interface DoubanSubjectLoadHandler<T extends DoubanSubject> {
parse(extract: T, context: HandleContext): Promise<HandleResult>;
support(extract: DoubanSubject): boolean;
handle(url: string, context: HandleContext): Promise<T>;
}