@mirohq/design-system-types
Advanced tools
Comparing version 0.5.0 to 0.6.0-use-press.0
# @mirohq-internal/design-system-types | ||
## 0.6.0-use-press.0 | ||
### Minor Changes | ||
- [#212](https://github.com/miroapp-dev/design-system/pull/212) [`af64a21f`](https://github.com/miroapp-dev/design-system/commit/af64a21f20d03be51d0aba2786cdb015aa136889) Thanks [@ivanbanov](https://github.com/ivanbanov)! - Added DOMEvenAttributes type | ||
## 0.5.0 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@mirohq/design-system-types", | ||
"version": "0.5.0", | ||
"version": "0.6.0-use-press.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "Miro", |
@@ -1,2 +0,7 @@ | ||
import type { HTMLProps, ComponentProps, ElementType } from 'react' | ||
import type { | ||
HTMLProps, | ||
ComponentProps, | ||
ElementType, | ||
DOMAttributes, | ||
} from 'react' | ||
@@ -19,1 +24,10 @@ /** | ||
> | ||
/** | ||
* Only `on` DOMAttributes | ||
*/ | ||
export type DOMEventAttributes<T> = { | ||
[K in keyof DOMAttributes<T> as K extends `on${string}` | ||
? K | ||
: never]: DOMAttributes<T> | ||
} |
3642
56