Skip to content

Commit

Permalink
feat: export interfaces for better TypeScript support (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
deadcoder0904 authored Aug 14, 2021
1 parent 6750d74 commit e88e729
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
declare module 'reading-time' {
interface IOptions {
export interface IOptions {
wordBound?: (char: string) => boolean;
wordsPerMinute?: number;
}

interface IReadTimeResults {
export interface IReadTimeResults {
text: string;
time: number;
words: number;
Expand Down

0 comments on commit e88e729

Please sign in to comment.