fix: hack to fix ts compile errors

This commit is contained in:
Benjy Cui
2017-04-21 11:39:01 +08:00
parent 5fe3cb9318
commit f5fa64c17b
+1 -2
View File
@@ -15,8 +15,7 @@ export interface PickerProps {
prefixCls: string;
}
export default function createPicker(TheCalendar) {
// use class typescript error
export default function createPicker(TheCalendar): any {
return class CalenderWrapper extends React.Component<any, any> {
static contextTypes = {
antLocale: PropTypes.object,