We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8d3f43 commit 7cb6175Copy full SHA for 7cb6175
index.d.ts
@@ -18,13 +18,15 @@ declare module 'reading-time' {
18
export type IOptions = Options;
19
export type IReadTimeResults = ReadTimeResults;
20
21
- export interface readingTimeStream extends Transform {
+ interface ReadingTimeStream extends Transform {
22
stats: ReadTimeResults;
23
options: Options;
24
_transform: (chunk: Buffer, encoding: BufferEncoding, callback: TransformCallback) => void;
25
_flush: (callback: TransformCallback) => void;
26
- (options: Options): ReadingTimeStream;
+ (options?: Options): ReadingTimeStream;
27
}
28
+ const readingTimeStream: ReadingTimeStream;
29
+ export {readingTimeStream};
30
31
export default function readingTime(text: string, options?: Options): ReadTimeResults;
32
0 commit comments