Skip to content

Commit debc898

Browse files
authored
Fix wrapInTestContext type signature (#2637)
1 parent 3ab1d9d commit debc898

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/testing/test-utils/src/utils.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ interface RefType {
1515
*
1616
* @param DecoratedComponent The component to decorate
1717
*/
18-
export function wrapInTestContext(
19-
DecoratedComponent: React.ComponentType<any>,
20-
): any {
18+
export function wrapInTestContext<T>(
19+
DecoratedComponent: React.ComponentType<T>,
20+
): React.ComponentType<T> {
2121
const forwardedRefFunc = (props: any, ref: React.Ref<RefType>) => {
2222
const dragDropManager = React.useRef<any>(undefined)
2323
const decoratedComponentRef = React.useRef<any>(undefined)

0 commit comments

Comments
 (0)