Skip to content

Commit

Permalink
added IWithESIProps to HOC class
Browse files Browse the repository at this point in the history
  • Loading branch information
dpnolte committed May 5, 2020
1 parent de9e7a4 commit 3518b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/withESI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function withESI<P>(
WrappedComponent: React.ComponentType<P>,
fragmentID: string
): React.ComponentClass<IWithESIProps & P> {
return class WithESI extends React.Component<P> {
return class WithESI extends React.Component<P & IWithESIProps> {
public static WrappedComponent = WrappedComponent;
public static displayName = `WithESI(${WrappedComponent.displayName ||
WrappedComponent.name ||
Expand Down

0 comments on commit 3518b0f

Please sign in to comment.