Merge pull request #33402 from iflp/master

Update recharts/index.d.ts
This commit is contained in:
Nathan Shively-Sanders
2019-03-06 08:08:41 -08:00
committed by GitHub

View File

@@ -13,6 +13,7 @@
// Andrew Palugniok <https://github.com/apalugniok>
// Robert Stigsson <https://github.com/RobertStigsson>
// Kosaku Kurino <https://github.com/kousaku-maron>
// Leon Ng <https://github.com/iflp>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
@@ -219,7 +220,7 @@ export interface BarProps extends EventAttributes, Partial<PresentationAttribute
data?: BarData[];
background?: boolean | React.ReactElement | ContentRenderer<any> | object;
// see label section at http://recharts.org/#/en-US/api/Bar
label?: boolean | Label | React.SFC<LabelProps> | React.ReactElement<LabelProps> | ContentRenderer<any>;
label?: boolean | Label | LabelProps | React.SFC<LabelProps> | React.ReactElement<LabelProps> | ContentRenderer<any>;
}
export class Bar extends React.Component<BarProps> { }