Skip to content

Commit

Permalink
Fix wrapInTestContext type signature (#2637)
Browse files Browse the repository at this point in the history
  • Loading branch information
traverse authored Jun 26, 2020
1 parent 3ab1d9d commit debc898
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/testing/test-utils/src/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ interface RefType {
*
* @param DecoratedComponent The component to decorate
*/
export function wrapInTestContext(
DecoratedComponent: React.ComponentType<any>,
): any {
export function wrapInTestContext<T>(
DecoratedComponent: React.ComponentType<T>,
): React.ComponentType<T> {
const forwardedRefFunc = (props: any, ref: React.Ref<RefType>) => {
const dragDropManager = React.useRef<any>(undefined)
const decoratedComponentRef = React.useRef<any>(undefined)
Expand Down

0 comments on commit debc898

Please sign in to comment.