Skip to content

Commit 7dd47a1

Browse files
authored
Merge pull request #21 from hckrnews/feature/finetune-docblocks
Finetune docblocks
2 parents e9d833e + 723b340 commit 7dd47a1

File tree

7 files changed

+696
-2925
lines changed

7 files changed

+696
-2925
lines changed

.eslintrc

+5
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,9 @@
2525
"parserOptions": {
2626
"sourceType": "module"
2727
},
28+
"settings": {
29+
"jsdoc": {
30+
"mode": "typescript"
31+
}
32+
},
2833
}

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
node-version: [18.x]
12+
node-version: [18.x, 19.x]
1313

1414
steps:
1515
- uses: actions/checkout@v3

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.5.0
1+
18.13.0

jsconfig.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"compilerOptions": {
3+
"checkJs": true,
4+
"target": "ESNext",
5+
"module": "ESNext",
6+
"moduleResolution": "node",
7+
"rootDirs": [
8+
"src"
9+
],
10+
"resolveJsonModule": true
11+
},
12+
"exclude": [
13+
"node_modules",
14+
"**/node_modules/*"
15+
]
16+
}

package-lock.json

+668-2,918
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hckrnews/arrays",
3-
"version": "3.0.3",
3+
"version": "3.0.4",
44
"description": "Usefull array helpers.",
55
"files": [
66
"src/helpers.js",

src/helpers.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Arr extends Array {
2626
* Sort a multiarray.
2727
*
2828
* @param {string} key
29-
* @param {string} direction
29+
* @param {string=} direction
3030
*
3131
* @return {array}
3232
*/
@@ -39,7 +39,7 @@ class Arr extends Array {
3939
*
4040
* @param {string} key
4141
* @param {string} find
42-
* @param {boolean} operator
42+
* @param {boolean=} operator
4343
*
4444
* @return {array}
4545
*/
@@ -62,7 +62,7 @@ class Arr extends Array {
6262
* Get the intersection of arrays.
6363
*
6464
* @param {string} array
65-
* @param {boolean} multi
65+
* @param {boolean=} multi
6666
*
6767
* @return {array}
6868
*/
@@ -74,7 +74,7 @@ class Arr extends Array {
7474
* Get the difference of arrays.
7575
*
7676
* @param {string} array
77-
* @param {boolean} total
77+
* @param {boolean=} total
7878
*
7979
* @return {array}
8080
*/

0 commit comments

Comments
 (0)