Boa noite, estou com problemas no exercício de Jquery, inclui o tsd do jquery na minha máquina e o compilador está reconhecendo os tipos. Porém ao utilizar o seguinte código :
new Date(this._inputData.val().replace(/-/g, ',')),
o compilador apresenta o erro:
app/ts/controllers/NegociacaoController.ts(22,44): error TS2339: Property 'replace' does not exist on type 'string | number | string[]'.
Property 'replace' does not exist on type 'number'.
Poderiam me ajudar?