Files
lnreader/specs/NativeEpub.ts
T
2025-05-25 08:15:58 +07:00

23 lines
515 B
TypeScript

import { TurboModule, TurboModuleRegistry } from 'react-native';
interface EpubChapter {
name: string;
path: string;
}
interface EpubNovel {
name: string;
cover: string | null;
summary: string | null;
author: string | null;
artist: string | null;
chapters: EpubChapter[];
cssPaths: string[];
imagePaths: string[];
}
export interface Spec extends TurboModule {
parseNovelAndChapters: (epubDirPath: string) => EpubNovel;
}
export default TurboModuleRegistry.getEnforcing<Spec>('NativeEpub');