@etsoo/shared 1.1.39 → 1.1.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -114,13 +114,13 @@ export declare namespace Utils {
114
114
  * @param minLength Minimum length
115
115
  * @returns Result
116
116
  */
117
- const isDigits: (input?: string | undefined, minLength?: number | undefined) => boolean;
117
+ const isDigits: (input?: string, minLength?: number) => boolean;
118
118
  /**
119
119
  * Is email string
120
120
  * @param input Input string
121
121
  * @returns Result
122
122
  */
123
- const isEmail: (input?: string | undefined) => boolean;
123
+ const isEmail: (input?: string) => boolean;
124
124
  /**
125
125
  * Join items as a string
126
126
  * @param items Items
@@ -188,7 +188,7 @@ export declare namespace Utils {
188
188
  * @param input Input string
189
189
  * @returns Result
190
190
  */
191
- const removeNonLetters: (input?: string | undefined) => string | undefined;
191
+ const removeNonLetters: (input?: string) => string | undefined;
192
192
  /**
193
193
  * Replace null or empty with default value
194
194
  * @param input Input string
@@ -202,7 +202,7 @@ export declare namespace Utils {
202
202
  * @param labels Labels
203
203
  * @param reference Key reference dictionary
204
204
  */
205
- const setLabels: (source: {}, labels: DataTypes.StringRecord, reference?: Readonly<DataTypes.StringDictionary> | undefined) => void;
205
+ const setLabels: (source: {}, labels: DataTypes.StringRecord, reference?: Readonly<DataTypes.StringDictionary>) => void;
206
206
  /**
207
207
  * Snake name to works, 'snake_name' to 'Snake Name'
208
208
  * @param name Name text
@@ -114,13 +114,13 @@ export declare namespace Utils {
114
114
  * @param minLength Minimum length
115
115
  * @returns Result
116
116
  */
117
- const isDigits: (input?: string | undefined, minLength?: number | undefined) => boolean;
117
+ const isDigits: (input?: string, minLength?: number) => boolean;
118
118
  /**
119
119
  * Is email string
120
120
  * @param input Input string
121
121
  * @returns Result
122
122
  */
123
- const isEmail: (input?: string | undefined) => boolean;
123
+ const isEmail: (input?: string) => boolean;
124
124
  /**
125
125
  * Join items as a string
126
126
  * @param items Items
@@ -188,7 +188,7 @@ export declare namespace Utils {
188
188
  * @param input Input string
189
189
  * @returns Result
190
190
  */
191
- const removeNonLetters: (input?: string | undefined) => string | undefined;
191
+ const removeNonLetters: (input?: string) => string | undefined;
192
192
  /**
193
193
  * Replace null or empty with default value
194
194
  * @param input Input string
@@ -202,7 +202,7 @@ export declare namespace Utils {
202
202
  * @param labels Labels
203
203
  * @param reference Key reference dictionary
204
204
  */
205
- const setLabels: (source: {}, labels: DataTypes.StringRecord, reference?: Readonly<DataTypes.StringDictionary> | undefined) => void;
205
+ const setLabels: (source: {}, labels: DataTypes.StringRecord, reference?: Readonly<DataTypes.StringDictionary>) => void;
206
206
  /**
207
207
  * Snake name to works, 'snake_name' to 'Snake Name'
208
208
  * @param name Name text
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/shared",
3
- "version": "1.1.39",
3
+ "version": "1.1.40",
4
4
  "description": "TypeScript shared utilities and functions",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -56,14 +56,14 @@
56
56
  "dependencies": {},
57
57
  "devDependencies": {
58
58
  "@types/jest": "^27.5.1",
59
- "@typescript-eslint/eslint-plugin": "^5.25.0",
60
- "@typescript-eslint/parser": "^5.25.0",
59
+ "@typescript-eslint/eslint-plugin": "^5.26.0",
60
+ "@typescript-eslint/parser": "^5.26.0",
61
61
  "eslint": "^8.16.0",
62
62
  "eslint-config-airbnb-base": "^15.0.0",
63
63
  "eslint-plugin-import": "^2.26.0",
64
64
  "jest": "^28.1.0",
65
65
  "jest-environment-jsdom": "^28.1.0",
66
- "ts-jest": "^28.0.2",
67
- "typescript": "^4.6.4"
66
+ "ts-jest": "^28.0.3",
67
+ "typescript": "^4.7.2"
68
68
  }
69
69
  }