renew typescript typings

This commit is contained in:
afc163 2018-08-07 23:00:34 +08:00 committed by 偏右
parent 064bfaf554
commit 287d08890a
3 changed files with 7 additions and 8 deletions

View File

@ -1,14 +1,16 @@
import CalendarLocale from 'rc-calendar/lib/locale/th_TH';
import TimePickerLocale from '../../time-picker/locale/th_TH';
import assign from 'object-assign';
// Merge into a locale object
const locale = {
lang: assign({
lang: {
placeholder: 'เลือกวันที่',
rangePlaceholder: ['วันเริ่มต้น', 'วันสิ้นสุด'],
}, CalendarLocale),
timePickerLocale: assign({}, TimePickerLocale),
...CalendarLocale,
},
timePickerLocale: {
...TimePickerLocale,
},
};
// All settings at:

View File

@ -94,6 +94,7 @@
"@types/prop-types": "^15.5.4",
"@types/react": "^16.0.0",
"@types/react-dom": "^16.0.0",
"@types/react-slick": "^0.23.2",
"@yesmeck/offline-plugin": "^5.0.5",
"ansi-styles": "^3.2.0",
"ant-design-palettes": "^1.0.0",

View File

@ -6,8 +6,6 @@ declare module 'rc-time-picker*';
declare module 'rc-pagination*';
declare module "object-assign";
declare module "omit.js";
declare module 'rc-animate';
@ -22,8 +20,6 @@ declare module 'css-animation';
declare module 'rc-select';
declare module 'react-slick';
declare module 'rc-cascader';
declare module 'array-tree-filter';