File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,14 @@ declare module 'react-universal-component' {
3
3
4
4
type ReportChunksProps = {
5
5
report ( chunkName : string | undefined ) : void ;
6
+ children ?: React . ReactNode ;
6
7
} ;
7
8
8
9
export class ReportChunks extends React . Component < ReportChunksProps > { }
9
10
10
11
type ComponentType < P > =
11
12
| React . ComponentType < P >
12
- | React . StatelessComponent < P >
13
+ | React . FunctionComponent < P >
13
14
| React . ComponentClass < P >
14
15
| React . Component < P > ;
15
16
@@ -62,7 +63,7 @@ declare module 'react-universal-component' {
62
63
) : void ;
63
64
} ;
64
65
65
- type UniversalComponent < P > = React . StatelessComponent <
66
+ type UniversalComponent < P > = React . FunctionComponent <
66
67
P & Partial < UniversalProps >
67
68
> & {
68
69
preload ( props ?: P ) : void ;
Original file line number Diff line number Diff line change 74
74
"travis-github-status" : " ^1.6.3"
75
75
},
76
76
"peerDependencies" : {
77
- "react" : " ^16.3.0 || ^17.0.0"
77
+ "react" : " ^16.3.0 || ^17.0.0 || ^18.0.0 "
78
78
},
79
79
"config" : {
80
80
"commitizen" : {
You can’t perform that action at this time.
0 commit comments