From df0ffd6d7af3c200567479bfc37bdf23bdf37c2d Mon Sep 17 00:00:00 2001 From: Nikhil Bhargava Date: Fri, 27 Apr 2018 22:43:43 -0400 Subject: [PATCH] Clean up typescript definitions --- src/components/Charts/ChartCard/index.d.ts | 2 +- src/components/Charts/Pie/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Charts/ChartCard/index.d.ts b/src/components/Charts/ChartCard/index.d.ts index 80fd3762..d174593f 100644 --- a/src/components/Charts/ChartCard/index.d.ts +++ b/src/components/Charts/ChartCard/index.d.ts @@ -2,7 +2,7 @@ import * as React from 'react'; export interface IChartCardProps { title: React.ReactNode; action?: React.ReactNode; - total?: React.ReactNode | function | number; + total?: React.ReactNode | number | (() => React.ReactNode | number); footer?: React.ReactNode; contentHeight?: number; avatar?: React.ReactNode; diff --git a/src/components/Charts/Pie/index.d.ts b/src/components/Charts/Pie/index.d.ts index 5b19208d..46e4600d 100644 --- a/src/components/Charts/Pie/index.d.ts +++ b/src/components/Charts/Pie/index.d.ts @@ -10,7 +10,7 @@ export interface IPieProps { x: string | string; y: number; }>; - total?: string | function; + total?: React.ReactNode | number | (() => React.ReactNode | number); title?: React.ReactNode; tooltip?: boolean; valueFormat?: (value: string) => string | React.ReactNode; -- GitLab