@mirohq/design-system-types 0.4.0 → 0.5.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @mirohq-internal/design-system-types
2
2
 
3
+ ## 0.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#170](https://github.com/miroapp-dev/design-system/pull/170) [`8c6c5c23`](https://github.com/miroapp-dev/design-system/commit/8c6c5c23e7f57617e610eeaa77d708cb8c029a5e) Thanks [@skarensmoll](https://github.com/skarensmoll)! - Included ExtractValidKeys type
8
+
9
+ ## 0.4.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#128](https://github.com/miroapp-dev/design-system/pull/128) [`c258f193`](https://github.com/miroapp-dev/design-system/commit/c258f193d08d1b5d2409b575c048a60818ef7ff6) Thanks [@skarensmoll](https://github.com/skarensmoll)! - Removed Scale type
14
+
3
15
  ## 0.4.0
4
16
 
5
17
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirohq/design-system-types",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "",
5
5
  "author": "Miro",
6
6
  "types": "src/index.d.ts",
package/src/global.d.ts CHANGED
@@ -3,3 +3,10 @@ export type Nullable<T> = T | null | undefined
3
3
  export type Numeric = number | `${number}`
4
4
 
5
5
  export type Booleanish = boolean | `${boolean}`
6
+
7
+ /**
8
+ * Extracts valid key properties from object.
9
+ */
10
+ export type ExtractValidKeys<T> = T extends string | number | boolean | symbol
11
+ ? T
12
+ : never
package/src/scales.d.ts CHANGED
@@ -11,13 +11,3 @@ export type Scales =
11
11
  | 'x-large'
12
12
  | 'xx-large'
13
13
  | 'xxx-large'
14
-
15
- /**
16
- * Filter out all non-scale options from a type
17
- */
18
- export type ScaleProp<T> = Extract<
19
- {
20
- [K in keyof T]: T[K] extends string ? T[K] : ScaleProp<T[K]>
21
- },
22
- Scales | object | undefined
23
- >