Skip to content

Commit

Permalink
Improve elementType types
Browse files Browse the repository at this point in the history
  • Loading branch information
Thom van Kalkeren committed Mar 22, 2021
1 parent 1db1e3f commit 1d5ee3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/TopologyProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import {
*/
export class TopologyProvider<P = {}, S = {}> extends React.Component<P, S> {
protected className: string | undefined = undefined;
protected elementType = "div";
protected elementType: keyof JSX.IntrinsicElements = "div";
protected topology: TopologyType = null;

public wrap(children: TopologyRenderer | React.ReactNode | React.ReactNode[]) {
public wrap(children: TopologyRenderer | React.ReactNode | React.ReactNode[]): JSX.Element {
return React.createElement(
LinkRenderCtx.Consumer,
null,
Expand Down

0 comments on commit 1d5ee3c

Please sign in to comment.