@tb-dev/utils 3.1.0 → 3.2.0
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/array/to-array.d.ts
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -27,6 +27,9 @@ export type PickByValue<T, V> = {
|
|
|
27
27
|
export type PickPartial<T, K extends keyof T> = Pick<Partial<T>, K>;
|
|
28
28
|
/** Constructs a type by picking the set of properties `K` from a required version of `T`. */
|
|
29
29
|
export type PickRequired<T, K extends keyof T> = Pick<Required<T>, K>;
|
|
30
|
+
export type Writeable<T> = {
|
|
31
|
+
-readonly [P in keyof T]: T[P];
|
|
32
|
+
};
|
|
30
33
|
/** Constructs a type consisting of some properties of T set to partial. */
|
|
31
34
|
export type WithPartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
32
35
|
/** Constructs a type consisting of some properties of T set to partial. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tb-dev/utils",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "TypeScript utils",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"typedoc-plugin-mdn-links": "^3.2.8",
|
|
39
39
|
"typescript": "^5.5.4",
|
|
40
40
|
"vite": "^5.4.0",
|
|
41
|
-
"vite-plugin-dts": "^
|
|
41
|
+
"vite-plugin-dts": "^4.0.3",
|
|
42
42
|
"vitest": "^2.0.5"
|
|
43
43
|
},
|
|
44
44
|
"files": [
|