We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57e5688 commit 16c1cb5Copy full SHA for 16c1cb5
@types/global.d.ts
@@ -1,6 +1,3 @@
1
-import * as React from 'react';
2
-
3
-export {};
4
declare module 'react' {
5
// A type for the properties of a function component
6
interface CodeBlockHTMLAttributes<T> extends HTMLAttributes<T> {
@@ -25,9 +22,11 @@ export type CodeBlockProps = React.DetailedHTMLProps<
25
22
controls?: boolean;
26
23
};
27
24
28
-// A type for JSX markup
29
-declare module 'JSX' {
30
- interface IntrinsicElements {
31
- 'code-block': CodeBlockProps;
+declare global {
+ // A type for JSX markup
+ namespace JSX {
+ interface IntrinsicElements {
+ 'code-block': CodeBlockProps;
+ }
32
}
33
0 commit comments