File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed
components/util/NotDoltWrapper Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import React, { ReactElement } from "react";
4
4
import NotDoltMsg from "./NotDoltMsg" ;
5
5
6
6
type Props = {
7
- children : ReactElement ;
7
+ children : ReactElement < { doltDisabled ?: boolean } > ;
8
8
showNotDoltMsg ?: boolean ;
9
9
feature ?: string ;
10
10
className ?: string ;
@@ -32,7 +32,7 @@ export default function NotDoltWrapper(props: Props) {
32
32
) ;
33
33
}
34
34
if ( res . disableDoltFeature ) {
35
- return React . cloneElement ( props . children , { doltDisabled : true } as any ) ;
35
+ return React . cloneElement ( props . children , { doltDisabled : true } ) ;
36
36
}
37
37
return < div /> ;
38
38
}
Original file line number Diff line number Diff line change 2
2
/// <reference types="react-dom" />
3
3
4
4
// Global JSX namespace for React 19 compatibility
5
- import * as React from ' react' ;
5
+ import * as React from " react" ;
6
6
7
7
declare global {
8
8
namespace JSX {
9
- interface Element extends React . ReactElement < any , any > { }
9
+ interface Element extends React . ReactElement < any , any > { }
10
10
interface ElementClass extends React . Component < any > {
11
11
render ( ) : React . ReactNode ;
12
12
}
13
- interface ElementAttributesProperty { props : { } ; }
14
- interface ElementChildrenAttribute { children : { } ; }
15
- interface IntrinsicAttributes extends React . Attributes { }
16
- interface IntrinsicClassAttributes < T > extends React . ClassAttributes < T > { }
13
+ interface ElementAttributesProperty {
14
+ props : { } ;
15
+ }
16
+ interface ElementChildrenAttribute {
17
+ children : { } ;
18
+ }
19
+ interface IntrinsicAttributes extends React . Attributes { }
20
+ interface IntrinsicClassAttributes < T > extends React . ClassAttributes < T > { }
17
21
interface IntrinsicElements {
18
22
[ elemName : string ] : any ;
19
23
}
20
24
}
21
- }
25
+ }
You can’t perform that action at this time.
0 commit comments