We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ab1d9d commit debc898Copy full SHA for debc898
packages/testing/test-utils/src/utils.tsx
@@ -15,9 +15,9 @@ interface RefType {
15
*
16
* @param DecoratedComponent The component to decorate
17
*/
18
-export function wrapInTestContext(
19
- DecoratedComponent: React.ComponentType<any>,
20
-): any {
+export function wrapInTestContext<T>(
+ DecoratedComponent: React.ComponentType<T>,
+): React.ComponentType<T> {
21
const forwardedRefFunc = (props: any, ref: React.Ref<RefType>) => {
22
const dragDropManager = React.useRef<any>(undefined)
23
const decoratedComponentRef = React.useRef<any>(undefined)
0 commit comments