Skip to content

Commit e88e729

Browse files
feat: export interfaces for better TypeScript support (#36)
1 parent 6750d74 commit e88e729

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
declare module 'reading-time' {
2-
interface IOptions {
2+
export interface IOptions {
33
wordBound?: (char: string) => boolean;
44
wordsPerMinute?: number;
55
}
66

7-
interface IReadTimeResults {
7+
export interface IReadTimeResults {
88
text: string;
99
time: number;
1010
words: number;

0 commit comments

Comments
 (0)