@mirohq/design-system-types 1.0.1-aria-label-icon-button.0 → 1.0.1-aria-label-icon-button.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/CHANGELOG.md +1 -1
- package/package.json +1 -1
- package/src/global.d.ts +2 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/global.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Makes a type more readable in editor tooltips by flattening intersections.
|
|
3
3
|
* @example
|
|
4
4
|
* type Result = Pretty<{a: number} & {b: string}>
|
|
5
|
-
*
|
|
5
|
+
* { a: number; b: string }
|
|
6
6
|
*/
|
|
7
7
|
export type Pretty<T> = { [K in keyof T]: T[K] } & {}
|
|
8
8
|
|
|
@@ -94,7 +94,7 @@ export type MergeUnion<T, U> = {
|
|
|
94
94
|
* type Result = AddToUnion<Union, Foo>
|
|
95
95
|
* { foo: number, id: number } | { bar: string, id: number }
|
|
96
96
|
*/
|
|
97
|
-
export type AddToUnion<T, U> = T extends any ? T & U : never
|
|
97
|
+
export type AddToUnion<T, U> = T extends any ? Pretty<T & U> : never
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
100
|
* Convert a type into a union of the value itself and an array of the value.
|