[improvement] default props in tsx (#2789)

This commit is contained in:
neverland
2019-02-19 11:31:55 +08:00
committed by GitHub
parent b9d7143fb3
commit 07a6bcbe9f
11 changed files with 21 additions and 21 deletions
+4 -4
View File
@@ -53,13 +53,13 @@ export type FunctionalComponent<
};
export type TsxBaseProps = {
class?: any;
style?: any;
class: any;
style: any;
// hack for jsx prop spread
props?: any;
props: any;
};
export type TsxComponent<Props, Events> = (
props: Props & Events & TsxBaseProps
props: Partial<Props & Events & TsxBaseProps>
) => VNode;
const arrayProp = {