Как мне выразить даты в TypeScript? Даты не являются типом TypeScript, поэтому я использую any
или object
? Похоже, что был бы "правильный" способ сделать:
let myDate: any = new Date();
Я не мог найти много в Google, несмотря на то, что это был такой простой вопрос.