Skip to content

Commit

Permalink
fix TS errors (#37)
Browse files Browse the repository at this point in the history
Signed-off-by: Josh-Cena <[email protected]>
  • Loading branch information
Josh-Cena authored Sep 3, 2021
1 parent c8d3f43 commit 7cb6175
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ declare module 'reading-time' {
export type IOptions = Options;
export type IReadTimeResults = ReadTimeResults;

export interface readingTimeStream extends Transform {
interface ReadingTimeStream extends Transform {
stats: ReadTimeResults;
options: Options;
_transform: (chunk: Buffer, encoding: BufferEncoding, callback: TransformCallback) => void;
_flush: (callback: TransformCallback) => void;
(options: Options): ReadingTimeStream;
(options?: Options): ReadingTimeStream;
}
const readingTimeStream: ReadingTimeStream;
export {readingTimeStream};

export default function readingTime(text: string, options?: Options): ReadTimeResults;
}
Expand Down

0 comments on commit 7cb6175

Please sign in to comment.