diff --git a/types/recharts/index.d.ts b/types/recharts/index.d.ts index 172c38ed8d..7065bf0df9 100644 --- a/types/recharts/index.d.ts +++ b/types/recharts/index.d.ts @@ -552,6 +552,7 @@ export interface PolarAngleAxisProps extends EventAttributes, Partial { } @@ -592,6 +593,7 @@ export interface PolarRadiusAxisProps extends EventAttributes, Partial; scale?: ScaleType | RechartsFunction; allowDataOverflow?: boolean; + allowDuplicatedCategory?: boolean; } export class PolarRadiusAxis extends React.Component { } @@ -1073,6 +1075,7 @@ export interface YAxisProps extends EventAttributes { reversed?: boolean; // see label section at http://recharts.org/#/en-US/api/YAxis label?: string | number | Label | LabelProps; + allowDuplicatedCategory?: boolean; stroke?: string; } diff --git a/types/recharts/recharts-tests.tsx b/types/recharts/recharts-tests.tsx index c2b8c67bd1..003ebdb2fe 100644 --- a/types/recharts/recharts-tests.tsx +++ b/types/recharts/recharts-tests.tsx @@ -5,7 +5,8 @@ import { CartesianGrid, Line, LineChart, PieChart, Pie, Sector, XAxis, YAxis, Tooltip, ReferenceLine, ReferenceArea, ResponsiveContainer, Label, LabelList, Brush, - ScatterChart, ZAxis, Legend, Scatter, Bar, BarChart, Text, Area, AreaChart, Customized + ScatterChart, ZAxis, Legend, Scatter, Bar, BarChart, Text, Area, AreaChart, Customized, + RadarChart, PolarGrid, PolarAngleAxis, PolarRadiusAxis, Radar } from 'recharts'; interface ComponentState { @@ -154,7 +155,7 @@ class Component extends React.Component<{}, ComponentState> { - + @@ -242,6 +243,12 @@ class Component extends React.Component<{}, ComponentState> { + + + + + + ); }