@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @mirohq-internal/design-system-types
2
2
 
3
- ## 1.0.1-aria-label-icon-button.0
3
+ ## 1.0.1-aria-label-icon-button.1
4
4
 
5
5
  ### Patch Changes
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirohq/design-system-types",
3
- "version": "1.0.1-aria-label-icon-button.0",
3
+ "version": "1.0.1-aria-label-icon-button.1",
4
4
  "description": "",
5
5
  "author": "Miro",
6
6
  "types": "src/index.d.ts",
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
- * // { a: number; b: string }
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.