Try to answer "Why type-checking is disabled here?"
handleDateSelected: debounce<Methods['handleDateSelected']>(function (e) {
const date = e.detail.value;
// @ts-ignore
if (date === this.data.selectedDate) {
return;
}
// @ts-ignore
this.getDailyBrushingRecordsAndStat(date).then(() => {
// @ts-ignore
this.setData({
selectedDate: date,
showBrushingDetail: true,
});
});
}, 300),