File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ import 'react' ;
2+
3+ declare global {
4+ // A type for the properties of a function component
5+ namespace React {
6+ interface CodeBlockHTMLAttributes < T > extends HTMLAttributes < T > {
7+ /** The accessible name of code block */
8+ label ?: string | undefined ;
9+ /** The Language name */
10+ language ?: string | undefined ;
11+ /** The flag to display the UI */
12+ controls ?: boolean ;
13+ }
14+ }
15+
16+ // A type for JSX markup
17+ namespace JSX {
18+ interface IntrinsicElements {
19+ 'code-block' : React . DetailedHTMLProps < React . HTMLAttributes < HTMLPreElement > , HTMLPreElement > & {
20+ /** The accessible name of code block */
21+ label ?: string | undefined ;
22+ /** The Language name */
23+ language ?: string | undefined ;
24+ /** The flag to display the UI */
25+ controls ?: boolean ;
26+ }
27+ }
28+ }
29+ }
You can’t perform that action at this time.
0 commit comments