@mirohq/design-system-types 1.0.1-aria-label-icon-button.0 → 1.0.1-dummy.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/CHANGELOG.md +2 -2
- package/package.json +1 -1
- package/src/global.d.ts +0 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @mirohq-internal/design-system-types
|
|
2
2
|
|
|
3
|
-
## 1.0.1-
|
|
3
|
+
## 1.0.1-dummy.0
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
- [
|
|
7
|
+
- [`e5a9653ef`](https://github.com/miroapp-dev/design-system/commit/e5a9653efd52994bcc4e6ac76705cd093bfaaa96) Thanks [@ivanbanov](https://github.com/ivanbanov)! - dummy
|
|
8
8
|
|
|
9
9
|
## 1.0.0
|
|
10
10
|
|
package/package.json
CHANGED
package/src/global.d.ts
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Makes a type more readable in editor tooltips by flattening intersections.
|
|
3
|
-
* @example
|
|
4
|
-
* type Result = Pretty<{a: number} & {b: string}>
|
|
5
|
-
* // { a: number; b: string }
|
|
6
|
-
*/
|
|
7
|
-
export type Pretty<T> = { [K in keyof T]: T[K] } & {}
|
|
8
|
-
|
|
9
1
|
/**
|
|
10
2
|
* Convert a type into a union of the value itself with null and undefined.
|
|
11
3
|
*
|
|
@@ -83,19 +75,6 @@ export type MergeUnion<T, U> = {
|
|
|
83
75
|
[K in keyof T]: K extends keyof U ? U[K] | T[K] : T[K]
|
|
84
76
|
} & OmitFromUnion<U, keyof T>
|
|
85
77
|
|
|
86
|
-
/**
|
|
87
|
-
* Adds properties from an object type to all members of a union type.
|
|
88
|
-
*
|
|
89
|
-
* @example
|
|
90
|
-
* Add properties to all union members
|
|
91
|
-
*
|
|
92
|
-
* type Union = { foo: number } | { bar: string }
|
|
93
|
-
* type Foo = { id: number }
|
|
94
|
-
* type Result = AddToUnion<Union, Foo>
|
|
95
|
-
* { foo: number, id: number } | { bar: string, id: number }
|
|
96
|
-
*/
|
|
97
|
-
export type AddToUnion<T, U> = T extends any ? T & U : never
|
|
98
|
-
|
|
99
78
|
/**
|
|
100
79
|
* Convert a type into a union of the value itself and an array of the value.
|
|
101
80
|
*
|