Skip to content

Commit

Permalink
Fix cfiRange type
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelsaback committed Sep 4, 2020
1 parent 516cebe commit 52d2c0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface EpubViewProps {
tocChanged?(value: Toc): void;
getRendition?(rendition: Rendition): void;
handleKeyPress?(): void;
handleTextSelected?(cfiRange: EpubCFI, contents: Contents):void;
handleTextSelected?(cfiRange: string, contents: Contents): void;
}

declare class EpubView extends React.Component<EpubViewProps> {}
Expand All @@ -31,7 +31,7 @@ interface Toc {
href: string;
}

interface ReactReaderProps extends Omit<EpubViewProps,'styles'> {
interface ReactReaderProps extends Omit<EpubViewProps, "styles"> {
title?: string;
showToc?: boolean;
styles?: ReactReaderStyles;
Expand Down

0 comments on commit 52d2c0c

Please sign in to comment.