【发布时间】:2021-01-14 02:24:55
【问题描述】:
“打字稿”:“^4.0.3”
如何解决我在以下代码中收到的上述打字稿错误?:
组件/OrderListItem.tsx
const newedate = (_date) => {
const options = {dateStyle: 'medium'}; //{ weekday: 'long', hour: 'numeric'};
const dateT = new Intl.DateTimeFormat('en-UK', options).format(_date);
return dateT;
}
我的部分回购在这里:https://github.com/TheoMer/next_apollo
【问题讨论】:
标签: reactjs typescript