File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## main
4
+
5
+ * Adds typescript typings
6
+
3
7
## 1.1.2 - 2022-01-20
4
8
5
9
* Updates mocha to v9.
Original file line number Diff line number Diff line change
1
+ declare type WordsOptions = {
2
+ min ?: number ;
3
+ max ?: number ;
4
+ exactly ?: number ;
5
+ maxLength ?: number ;
6
+ wordsPerString ?: number ;
7
+ seperator ?: string ;
8
+ formatter ?: ( word : string , index : number ) => string ;
9
+ } ;
10
+
11
+ declare type JoinedWordsOptions = WordsOptions & { join : string ; } ;
12
+
13
+ declare function words ( count : number ) : string [ ] ;
14
+ declare function words ( options : WordsOptions ) : string [ ] ;
15
+ declare function words ( options : JoinedWordsOptions ) : string ;
16
+
17
+ export const wordsList : string [ ] ;
18
+ export default words ;
Original file line number Diff line number Diff line change 3
3
"version" : " 1.1.2" ,
4
4
"description" : " Generate one or more common English words" ,
5
5
"main" : " index.js" ,
6
+ "types" : " index.d.ts" ,
6
7
"scripts" : {
7
8
"test" : " mocha tests/test.js"
8
9
},
You can’t perform that action at this time.
0 commit comments