[improvement] AddressList: tsx (#2792)

This commit is contained in:
neverland
2019-02-19 13:57:32 +08:00
committed by GitHub
parent 4e52510f85
commit c55b33f447
5 changed files with 65 additions and 12 deletions

View File

@@ -53,11 +53,15 @@ export type FunctionalComponent<
};
export type TsxBaseProps = {
class: any;
style: any;
key: string | number;
// hack for jsx prop spread
props: any;
class: any;
style: {
[key: string]: string | number;
};
};
export type TsxComponent<Props, Events> = (
props: Partial<Props & Events & TsxBaseProps>
) => VNode;