7fbdd92117
* implement classes for plugins * feat: plugin manages UA, cookie itself * fix: repo path * safer regexString * feat: EpubParser native module * add reject to parser * local category, better insert category trigger * add isLocal field to Novel * category update logic for local novels * feat: import epub * delete downloaded folder when delete novel * local novel screen * update build.yml * fix: novel without cover
9 lines
293 B
TypeScript
9 lines
293 B
TypeScript
import { SourceNovel } from '@plugins/types';
|
|
import { NativeModules } from 'react-native';
|
|
interface EpubParserInterface {
|
|
parse: (epubFilePath: string, epubDirPath: string) => Promise<SourceNovel>;
|
|
}
|
|
const { EpubParser } = NativeModules;
|
|
|
|
export default EpubParser as EpubParserInterface;
|