@@ -24,6 +24,7 @@ import {
2424 currentURL ,
2525 // Rendering Helpers
2626 render ,
27+ rerender ,
2728 clearRender ,
2829 // Wait Helpers
2930 waitFor ,
@@ -109,7 +110,11 @@ expectTypeOf(tap).toEqualTypeOf<
109110 ( target : Target , options ?: TouchEventInit ) => Promise < void >
110111> ( ) ;
111112expectTypeOf ( triggerEvent ) . toEqualTypeOf <
112- ( target : Target , eventType : string , options ?: object ) => Promise < void >
113+ (
114+ target : Target ,
115+ eventType : string ,
116+ options ?: Record < string , unknown >
117+ ) => Promise < void >
113118> ( ) ;
114119expectTypeOf ( triggerKeyEvent ) . toEqualTypeOf <
115120 (
@@ -135,8 +140,16 @@ expectTypeOf(typeIn).toEqualTypeOf<
135140> ( ) ;
136141
137142// DOM Query Helpers
138- expectTypeOf ( find ) . toEqualTypeOf < ( selector : string ) => Element | null > ( ) ;
143+ expectTypeOf ( find ) . toEqualTypeOf < Document [ 'querySelector' ] > ( ) ;
144+ expectTypeOf ( find ( 'a' ) ) . toEqualTypeOf < HTMLAnchorElement | SVGAElement | null > ( ) ;
145+ expectTypeOf ( find ( 'div' ) ) . toEqualTypeOf < HTMLDivElement | null > ( ) ;
146+ expectTypeOf ( find ( 'circle' ) ) . toEqualTypeOf < SVGCircleElement | null > ( ) ;
147+ expectTypeOf ( find ( '.corkscrew' ) ) . toEqualTypeOf < Element | null > ( ) ;
139148expectTypeOf ( findAll ) . toEqualTypeOf < ( selector : string ) => Array < Element > > ( ) ;
149+ expectTypeOf ( findAll ( 'a' ) ) . toEqualTypeOf < ( HTMLAnchorElement | SVGAElement ) [ ] > ( ) ;
150+ expectTypeOf ( findAll ( 'div' ) ) . toEqualTypeOf < HTMLDivElement [ ] > ( ) ;
151+ expectTypeOf ( findAll ( 'circle' ) ) . toEqualTypeOf < SVGCircleElement [ ] > ( ) ;
152+ expectTypeOf ( findAll ( '.corkscrew' ) ) . toEqualTypeOf < Element [ ] > ( ) ;
140153expectTypeOf ( getRootElement ) . toEqualTypeOf < ( ) => Element | Document > ( ) ;
141154
142155// Routing Helpers
@@ -153,6 +166,7 @@ expectTypeOf(render).toMatchTypeOf<
153166 options ?: { owner ?: Owner }
154167 ) => Promise < void >
155168> ( ) ;
169+ expectTypeOf ( rerender ) . toMatchTypeOf < ( ) => Promise < void > > ( ) ;
156170expectTypeOf ( clearRender ) . toEqualTypeOf < ( ) => Promise < void > > ( ) ;
157171
158172// Wait Helpers
@@ -186,7 +200,7 @@ expectTypeOf(getSettledState).toEqualTypeOf<
186200 hasPendingTransitions : boolean | null ;
187201 isRenderPending : boolean ;
188202 pendingRequestCount : number ;
189- debugInfo ? : InternalDebugInfo ;
203+ debugInfo : InternalDebugInfo ;
190204 }
191205> ( ) ;
192206
0 commit comments