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 11import * 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' ;
33import act from './act' ;
44import { addToCleanupQueue } from './cleanup' ;
55import { getConfig } from './config' ;
@@ -50,7 +50,7 @@ export function renderInternal<T>(element: React.ReactElement<T>, options?: Rend
5050 return buildRenderResult ( renderer , wrap ) ;
5151}
5252
53- function buildRenderResult ( renderer : Renderer , wrap : ( element : React . ReactElement ) => JSX . Element ) {
53+ function buildRenderResult ( renderer : Root , wrap : ( element : React . ReactElement ) => JSX . Element ) {
5454 const update = ( element : React . ReactElement ) => {
5555 void act ( ( ) => {
5656 renderer . render ( wrap ( element ) ) ;
@@ -84,7 +84,7 @@ function buildRenderResult(renderer: Renderer, wrap: (element: React.ReactElemen
8484
8585export type DebugFunction = ( options ?: DebugOptions | string ) => void ;
8686
87- function debug ( renderer : Renderer ) : DebugFunction {
87+ function debug ( renderer : Root ) : DebugFunction {
8888 function debugImpl ( options ?: DebugOptions | string ) {
8989 const { defaultDebugOptions } = getConfig ( ) ;
9090 const debugOptions =
You can’t perform that action at this time.
0 commit comments