Skip to content

Commit 0c2672e

Browse files
committed
Update type test types
1 parent 09dac30 commit 0c2672e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: types/test.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -123,18 +123,18 @@ export function testQueries() {
123123
}
124124

125125
export function wrappedRender(
126-
ui: React.ReactElement,
126+
ui: React.ReactNode,
127127
options?: pure.RenderOptions,
128128
) {
129-
const Wrapper = ({children}: {children: React.ReactElement}): JSX.Element => {
129+
const Wrapper = ({children}: {children: React.ReactNode}): JSX.Element => {
130130
return <div>{children}</div>
131131
}
132132

133133
return pure.render(ui, {wrapper: Wrapper, ...options})
134134
}
135135

136136
export function wrappedRenderB(
137-
ui: React.ReactElement,
137+
ui: React.ReactNode,
138138
options?: pure.RenderOptions,
139139
) {
140140
const Wrapper: React.FunctionComponent<{children?: React.ReactNode}> = ({
@@ -147,7 +147,7 @@ export function wrappedRenderB(
147147
}
148148

149149
export function wrappedRenderC(
150-
ui: React.ReactElement,
150+
ui: React.ReactNode,
151151
options?: pure.RenderOptions,
152152
) {
153153
interface AppWrapperProps {

0 commit comments

Comments
 (0)