From 15beb1a86d5192d9029191e229e36e181d410ba3 Mon Sep 17 00:00:00 2001 From: Bendy Zhang Date: Sun, 13 Jan 2019 19:19:09 +0800 Subject: [PATCH 1/2] [recharts] Add Surface and Symbols definitions, 'fill' prop for PresentationAttribute --- types/recharts/index.d.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/types/recharts/index.d.ts b/types/recharts/index.d.ts index c7f420edf6..fe26880455 100644 --- a/types/recharts/index.d.ts +++ b/types/recharts/index.d.ts @@ -129,6 +129,7 @@ export interface PresentationAttributes extends Pick { } + +export interface SurfaceProps { + width?: number; + height?: number; + viewBox?: ViewBox, + className?: string; + style?: object; + children?: React.ReactNode[] | React.ReactNode; +} + +export class Surface extends React.Component { } + +export interface SymbolsProps extends Partial { + className?: string; + type?: 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye'; + cx?: number; + cy?: number; + size?: number; + sizeType?: 'area' | 'diameter'; +} + +export class Symbols extends React.Component { } From a7758534d3774b67f6b78f73d46b354d7c1f90b2 Mon Sep 17 00:00:00 2001 From: Bendy Zhang Date: Sun, 13 Jan 2019 19:48:23 +0800 Subject: [PATCH 2/2] [recharts] fix lint error --- types/recharts/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/recharts/index.d.ts b/types/recharts/index.d.ts index fe26880455..65f68fa24c 100644 --- a/types/recharts/index.d.ts +++ b/types/recharts/index.d.ts @@ -1008,7 +1008,7 @@ export class ZAxis extends React.Component { } export interface SurfaceProps { width?: number; height?: number; - viewBox?: ViewBox, + viewBox?: ViewBox; className?: string; style?: object; children?: React.ReactNode[] | React.ReactNode;