Skip to content

Commit

Permalink
jakezatecky#145: Change JSX.Element to React.ReactNode in typings
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Krönert authored and Florian Krönert committed Oct 7, 2019
1 parent 235005c commit 4f3421e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@ import * as React from 'react';

declare module "react-checkbox-tree" {
interface Node {
label: JSX.Element;
label: React.ReactNode;
value: string;
children?: Array<Node>;
className?: string;
disabled?: boolean;
icon?: JSX.Element;
icon?: React.ReactNode;
showCheckbox?: boolean;
title?: string;
}

interface Icons {
check?: JSX.Element;
uncheck?: JSX.Element;
halfCheck?: JSX.Element;
expandOpen?: JSX.Element;
expandClose?: JSX.Element;
expandAll?: JSX.Element;
collapseAll?: JSX.Element;
parentClose?: JSX.Element;
parentOpen?: JSX.Element;
leaf?: JSX.Element;
check?: React.ReactNode;
uncheck?: React.ReactNode;
halfCheck?: React.ReactNode;
expandOpen?: React.ReactNode;
expandClose?: React.ReactNode;
expandAll?: React.ReactNode;
collapseAll?: React.ReactNode;
parentClose?: React.ReactNode;
parentOpen?: React.ReactNode;
leaf?: React.ReactNode;
}

interface Language {
Expand Down

0 comments on commit 4f3421e

Please sign in to comment.