diff --git a/types/recharts/index.d.ts b/types/recharts/index.d.ts index 342c1a07bb..738c04bb02 100644 --- a/types/recharts/index.d.ts +++ b/types/recharts/index.d.ts @@ -910,7 +910,7 @@ export interface XAxisProps extends EventAttributes { interval?: AxisInterval; reversed?: boolean; // see label section at http://recharts.org/#/en-US/api/XAxis - label?: string | number | Label; + label?: string | number | Label | LabelProps; } export class XAxis extends React.Component { } @@ -961,7 +961,7 @@ export interface YAxisProps extends EventAttributes { interval?: AxisInterval; reversed?: boolean; // see label section at http://recharts.org/#/en-US/api/YAxis - label?: string | number | Label; + label?: string | number | Label | LabelProps; } export class YAxis extends React.Component { } diff --git a/types/recharts/recharts-tests.tsx b/types/recharts/recharts-tests.tsx index 7fdf37115f..17d49bbd11 100644 --- a/types/recharts/recharts-tests.tsx +++ b/types/recharts/recharts-tests.tsx @@ -136,12 +136,8 @@ class Component extends React.Component<{}, ComponentState> { - - - - - - + +