Merge pull request #5609 from mitchelldemler/Fix-tabs-type-definitions

Added type for tabs click events
This commit is contained in:
偏右 2017-04-04 23:21:43 +08:00 committed by GitHub
commit 0c63deeefb

View File

@ -17,8 +17,8 @@ export interface TabsProps {
hideAdd?: boolean;
onChange?: (activeKey: string) => void;
onTabClick?: Function;
onPrevClick?: (e) => void;
onNextClick?: (e) => void;
onPrevClick?: (e: React.MouseEventHandler<any>) => void;
onNextClick?: (e: React.MouseEventHandler<any>) => void;
tabBarExtraContent?: React.ReactNode | null;
tabBarStyle?: React.CSSProperties;
type?: TabsType;