From a4be70334db6248aee6beef3ae91a08bcdbb6a8d Mon Sep 17 00:00:00 2001 From: feng zhi hao Date: Wed, 21 Sep 2016 09:27:58 +0800 Subject: [PATCH] chore: fix some error declaration (#3099) --- components/card/index.tsx | 1 + components/form/Form.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/card/index.tsx b/components/card/index.tsx index 75612d3c15..0ba1e74090 100644 --- a/components/card/index.tsx +++ b/components/card/index.tsx @@ -10,6 +10,7 @@ export interface CardProps { style?: React.CSSProperties; loading?: boolean; children?: any; + id?: string; } export default (props: CardProps) => { diff --git a/components/form/Form.tsx b/components/form/Form.tsx index fd88fb3c8a..0eff34e27c 100644 --- a/components/form/Form.tsx +++ b/components/form/Form.tsx @@ -69,7 +69,7 @@ export type WrappedFormUtils = { rules?: Array; /** 是否和其他控件互斥,特别用于 Radio 单选控件 */ exclusive?: boolean; - }): Array; + }): (node: React.ReactNode) => React.ReactNode; } export interface FormComponentProps {