File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
- import { createRoot , HostElement , Renderer } from 'universal-test-renderer/react-native' ;
2
+ import { createRoot , HostElement , Root } from 'universal-test-renderer/react-native' ;
3
3
import act from './act' ;
4
4
import { addToCleanupQueue } from './cleanup' ;
5
5
import { getConfig } from './config' ;
@@ -50,7 +50,7 @@ export function renderInternal<T>(element: React.ReactElement<T>, options?: Rend
50
50
return buildRenderResult ( renderer , wrap ) ;
51
51
}
52
52
53
- function buildRenderResult ( renderer : Renderer , wrap : ( element : React . ReactElement ) => JSX . Element ) {
53
+ function buildRenderResult ( renderer : Root , wrap : ( element : React . ReactElement ) => JSX . Element ) {
54
54
const update = ( element : React . ReactElement ) => {
55
55
void act ( ( ) => {
56
56
renderer . render ( wrap ( element ) ) ;
@@ -84,7 +84,7 @@ function buildRenderResult(renderer: Renderer, wrap: (element: React.ReactElemen
84
84
85
85
export type DebugFunction = ( options ?: DebugOptions | string ) => void ;
86
86
87
- function debug ( renderer : Renderer ) : DebugFunction {
87
+ function debug ( renderer : Root ) : DebugFunction {
88
88
function debugImpl ( options ?: DebugOptions | string ) {
89
89
const { defaultDebugOptions } = getConfig ( ) ;
90
90
const debugOptions =
You can’t perform that action at this time.
0 commit comments