Skip to content

Commit

Permalink
Merge pull request #942 from Himself65/patch-1
Browse files Browse the repository at this point in the history
fix: type in `compromise-stats`
  • Loading branch information
spencermountain authored Aug 2, 2022
2 parents 98282ff + c9b13e7 commit 8883b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/stats/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import nlp from 'compromise'
export type Freq = [word: string, freq: number]

type Gram = { size: number, count: number, normal: string }
type Opts = { min: number, max: number }
type Opts = { min: number, max: number } | { size: number }

export interface StatsMethods {
/** list all repeating sub-phrases, by word-count*/
Expand Down

0 comments on commit 8883b11

Please sign in to comment.