diff --git a/types/recharts/index.d.ts b/types/recharts/index.d.ts index 5854a5d5df..c374f1d5ec 100644 --- a/types/recharts/index.d.ts +++ b/types/recharts/index.d.ts @@ -700,8 +700,8 @@ export class Tooltip extends React.Component { } export interface TreemapProps { data: any[]; - width: number; - height: number; + width?: number; + height?: number; dataKey?: string; aspectRatio: number; isAnimationActive?: boolean;