| 3 | declare module '../../' { |
| 4 | namespace createElement.JSX { |
| 5 | interface IntrinsicElements { |
| 6 | // Custom element can use JSX EventHandler definitions |
| 7 | 'clickable-ce': { |
| 8 | optionalAttr?: string; |
| 9 | onClick?: MouseEventHandler<HTMLElement>; |
| 10 | }; |
| 11 | |
| 12 | // Custom Element that extends HTML attributes |
| 13 | 'color-picker': HTMLAttributes & { |
| 14 | // Required attribute |
| 15 | space: 'rgb' | 'hsl' | 'hsv'; |
| 16 | // Optional attribute |
| 17 | alpha?: boolean; |
| 18 | }; |
| 19 | |
| 20 | // Custom Element with custom interface definition |
| 21 | 'custom-whatever': WhateveElAttributes; |
| 22 | } |
| 23 | } |
| 24 | } |
| 25 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…