From 14f39d7936c068746bcd89063fc3634a3cb9901b Mon Sep 17 00:00:00 2001 From: Teemu Koivisto Date: Fri, 1 Jun 2018 16:11:18 +0300 Subject: [PATCH] Fix missing LabelList typing & update README --- types/recharts/README.MD | 8 ++++++++ types/recharts/index.d.ts | 17 +++++++++++++++++ types/recharts/recharts-tests.tsx | 24 ++++++++++++++++++++++-- 3 files changed, 47 insertions(+), 2 deletions(-) diff --git a/types/recharts/README.MD b/types/recharts/README.MD index 063a6dab3c..970e15ec0b 100644 --- a/types/recharts/README.MD +++ b/types/recharts/README.MD @@ -2,3 +2,11 @@ Typings for [Recharts](http://recharts.org/), a composable charting library buil The [Recharts website](https://github.com/recharts/recharts.org) has comprehensive API documentation which is generated from JavaScript files. Those files are used as input to generate these typings. + +# How to run tests + +As of 1.6.2018. + +1) Install typescript globally: `npm i -g typescript` +2) Install React's dependencies: `cd ../react && npm i` +3) Run tests: `cd ../recharts && tsc` \ No newline at end of file diff --git a/types/recharts/index.d.ts b/types/recharts/index.d.ts index ecdcd1f420..d6e4a084a7 100644 --- a/types/recharts/index.d.ts +++ b/types/recharts/index.d.ts @@ -841,6 +841,23 @@ export interface LabelProps { content?: React.ReactElement | ContentRenderer