shelving 1.176.0 → 1.176.2
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 +1 -1
package/package.json
CHANGED
package/util/data.d.ts
CHANGED
|
@@ -64,7 +64,7 @@ export type NestedData = {
|
|
|
64
64
|
* Helper type to flatten one level of nested data into a single flat `Data` type.
|
|
65
65
|
* i.e. `FlattenData<{ A: { a: number }, B: { b: string } }>` produces `{ a: number, b: string }`
|
|
66
66
|
*/
|
|
67
|
-
export type
|
|
67
|
+
export type FlatData<T extends NestedData> = Resolve<UnionToIntersection<T[keyof T]>>;
|
|
68
68
|
/** Is an unknown value a data object? */
|
|
69
69
|
export declare function isData(value: unknown): value is Data;
|
|
70
70
|
/** Assert that an unknown value is a data object. */
|