shelving 1.160.3 → 1.160.4
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/package.json +1 -1
- package/util/data.d.ts +4 -0
package/package.json
CHANGED
package/util/data.d.ts
CHANGED
|
@@ -6,6 +6,10 @@ import type { DeepPartial } from "./object.js";
|
|
|
6
6
|
export type Data = {
|
|
7
7
|
readonly [K in string]: unknown;
|
|
8
8
|
};
|
|
9
|
+
/** Partial data object (values can be explicitly `undefined`). */
|
|
10
|
+
export type PartialData<T extends Data> = {
|
|
11
|
+
readonly [K in keyof T]?: T[K] | undefined;
|
|
12
|
+
};
|
|
9
13
|
/** Key for a data object prop. */
|
|
10
14
|
export type DataKey<T extends Data> = keyof T & string;
|
|
11
15
|
/** Value for a data object prop. */
|