@tb-dev/utils 7.0.19 → 7.1.1
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.
- package/dist/types/index.d.ts +2 -0
- package/package.json +7 -7
package/dist/types/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export type Fn = () => void;
|
|
|
6
6
|
export type MaybeArray<T> = T | T[];
|
|
7
7
|
/** Something may be a promise. */
|
|
8
8
|
export type MaybePromise<T> = T | PromiseLike<T>;
|
|
9
|
+
/** Something may be a readonly array. */
|
|
10
|
+
export type MaybeReadonlyArray<T> = T | readonly T[];
|
|
9
11
|
/** Null or undefined. */
|
|
10
12
|
export type nil = null | undefined;
|
|
11
13
|
/** Something may be nullish. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tb-dev/utils",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.1",
|
|
4
4
|
"description": "TypeScript utils",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
"typescript"
|
|
25
25
|
],
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@tb-dev/eslint-config": "^8.2.
|
|
28
|
-
"@types/node": "^
|
|
29
|
-
"@vitest/ui": "^4.0.
|
|
30
|
-
"eslint": "^9.39.
|
|
27
|
+
"@tb-dev/eslint-config": "^8.2.2",
|
|
28
|
+
"@types/node": "^25.0.3",
|
|
29
|
+
"@vitest/ui": "^4.0.16",
|
|
30
|
+
"eslint": "^9.39.2",
|
|
31
31
|
"tslib": "^2.8.1",
|
|
32
32
|
"typedoc": "^0.28.15",
|
|
33
33
|
"typedoc-plugin-mdn-links": "^5.0.10",
|
|
34
34
|
"typescript": "^5.9.3",
|
|
35
|
-
"vite": "^7.
|
|
35
|
+
"vite": "^7.3.0",
|
|
36
36
|
"vite-plugin-dts": "^4.5.4",
|
|
37
|
-
"vitest": "^4.0.
|
|
37
|
+
"vitest": "^4.0.16"
|
|
38
38
|
},
|
|
39
39
|
"files": [
|
|
40
40
|
"dist"
|