From debc89829dd988f4e942a0251eba36c34a070f42 Mon Sep 17 00:00:00 2001 From: Tom <7240988+traverse@users.noreply.github.com> Date: Fri, 26 Jun 2020 18:30:00 +0200 Subject: [PATCH] Fix wrapInTestContext type signature (#2637) --- packages/testing/test-utils/src/utils.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/testing/test-utils/src/utils.tsx b/packages/testing/test-utils/src/utils.tsx index 5202cc75f8..0137344ffd 100644 --- a/packages/testing/test-utils/src/utils.tsx +++ b/packages/testing/test-utils/src/utils.tsx @@ -15,9 +15,9 @@ interface RefType { * * @param DecoratedComponent The component to decorate */ -export function wrapInTestContext( - DecoratedComponent: React.ComponentType, -): any { +export function wrapInTestContext( + DecoratedComponent: React.ComponentType, +): React.ComponentType { const forwardedRefFunc = (props: any, ref: React.Ref) => { const dragDropManager = React.useRef(undefined) const decoratedComponentRef = React.useRef(undefined)