Skip to content

Commit fce2562

Browse files
authored
Add return type to withBoundingRects (#1837)
1 parent 1501575 commit fce2562

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/visx-bounds/src/enhancers/withBoundingRects.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint react/no-did-mount-set-state: 0, react/no-find-dom-node: 0 */
2-
import React from 'react';
2+
import React, { ComponentClass } from 'react';
33
import ReactDOM from 'react-dom';
44

55
const emptyRect = {
@@ -29,7 +29,7 @@ export type WithBoundingRectsProps = {
2929

3030
export default function withBoundingRects<Props extends object = {}>(
3131
BaseComponent: React.ComponentType<Props>,
32-
) {
32+
): ComponentClass<Props> {
3333
return class WrappedComponent extends React.PureComponent<Props> {
3434
static displayName = `withBoundingRects(${BaseComponent.displayName || ''})`;
3535
node: HTMLElement | undefined | null;

0 commit comments

Comments
 (0)