提交 df0ffd6d 编写于 作者: N Nikhil Bhargava 提交者: 陈帅

Clean up typescript definitions

上级 3df1c08f
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册