e22m4u 1 неделя назад
Родитель
Сommit
365f8a12d2
4 измененных файлов с 14 добавлено и 8 удалено
  1. 2 2
      dist/cjs/index.cjs
  2. 2 1
      package.json
  3. 2 2
      src/empty-values-service.js
  4. 8 3
      tsconfig.json

+ 2 - 2
dist/cjs/index.cjs

@@ -118,7 +118,7 @@ var _EmptyValuesService = class _EmptyValuesService extends import_js_service.Se
   /**
    * Set empty values of data type.
    *
-   * @param {string} dataType
+   * @param {DataType} dataType
    * @param {*[]} emptyValues
    * @returns {EmptyValuesService}
    */
@@ -150,7 +150,7 @@ var _EmptyValuesService = class _EmptyValuesService extends import_js_service.Se
   /**
    * Is empty for type.
    *
-   * @param {string} dataType
+   * @param {DataType} dataType
    * @param {*} value
    * @returns {boolean}
    */

+ 2 - 1
package.json

@@ -44,6 +44,7 @@
     "@commitlint/cli": "~20.1.0",
     "@commitlint/config-conventional": "~20.0.0",
     "@eslint/js": "~9.39.1",
+    "@types/mocha": "^10.0.10",
     "c8": "~10.1.3",
     "chai": "~6.2.1",
     "esbuild": "~0.27.0",
@@ -54,7 +55,7 @@
     "globals": "~16.5.0",
     "husky": "~9.1.7",
     "mocha": "~11.7.5",
-    "prettier": "~3.6.2",
+    "prettier": "~3.7.2",
     "rimraf": "~6.1.2",
     "typescript": "~5.9.3"
   }

+ 2 - 2
src/empty-values-service.js

@@ -25,7 +25,7 @@ export class EmptyValuesService extends Service {
   /**
    * Set empty values of data type.
    *
-   * @param {string} dataType
+   * @param {DataType} dataType
    * @param {*[]} emptyValues
    * @returns {EmptyValuesService}
    */
@@ -61,7 +61,7 @@ export class EmptyValuesService extends Service {
   /**
    * Is empty for type.
    *
-   * @param {string} dataType
+   * @param {DataType} dataType
    * @param {*} value
    * @returns {boolean}
    */

+ 8 - 3
tsconfig.json

@@ -1,9 +1,14 @@
 {
   "compilerOptions": {
-    "rootDir": "src",
     "noEmit": true,
     "target": "es2022",
     "module": "NodeNext",
-    "moduleResolution": "NodeNext"
-  }
+    "moduleResolution": "NodeNext",
+    "allowJs": true,
+    "checkJs": true
+  },
+  "include": [
+    "./src/**/*.ts",
+    "./src/**/*.js"
+  ]
 }