Closed ieow closed 4 years ago
@ieow typescript 中怎么用?没有找到声明文件
This might help someone,
declare module "react-mobile-datepicker" {
type Props = {
theme: string;
value: Object;
min: Object;
max: Object;
customHeader?: React.Element<*>;
showHeader: boolean;
showFooter: boolean;
showCaption: boolean;
dateConfig: Object | Array<string>;
headerFormat: string;
confirmText: string;
cancelText: string;
onChange: Function;
onSelect: Function;
onCancel: Function;
};
type State = {
value: string;
};
class DatePicker extends React.Component<Partial<Props>, State> {}
export default DatePicker;
}
请问有支持 typescript 吗
刚查到了。