From 357c5f1e9007dec322f11fb01701afdf18049cd5 Mon Sep 17 00:00:00 2001 From: Tom Milligan Date: Wed, 6 Jun 2018 19:32:18 +0100 Subject: [PATCH] recharts X/YAxis label prop can be of type LabelProps --- types/recharts/index.d.ts | 4 ++-- types/recharts/recharts-tests.tsx | 8 ++------ 2 files changed, 4 insertions(+), 8 deletions(-) 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> { - - - - - - + +