Skip to content

Commit f379cea

Browse files
🔧 Update types
1 parent ab66b43 commit f379cea

File tree

3 files changed

+8468
-11212
lines changed

3 files changed

+8468
-11212
lines changed

@types/global.d.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 'react';
2-
32
declare global {
43
// A type for the properties of a function component
54
namespace React {
@@ -16,14 +15,17 @@ declare global {
1615
// A type for JSX markup
1716
namespace JSX {
1817
interface IntrinsicElements {
19-
'code-block': React.DetailedHTMLProps<React.HTMLAttributes<HTMLPreElement>, HTMLPreElement> & {
18+
'code-block': React.DetailedHTMLProps<
19+
React.HTMLAttributes<HTMLPreElement>,
20+
HTMLPreElement
21+
> & {
2022
/** The accessible name of code block */
2123
label?: string | undefined;
2224
/** The Language name */
2325
language?: string | undefined;
2426
/** The flag to display the UI */
2527
controls?: boolean;
26-
}
28+
};
2729
}
2830
}
2931
}

0 commit comments

Comments
 (0)