Categories
Mastering Development

why my callback function does not work in typescript?

I use angular with typescript, in the call to the callback function the compiler tells me: TS1138 error: Parameter declaration expected. I can’t understand where the error is TS—–> processFen(callback) { let data_request = localStorage.getItem(“arrayActualizar”); callback(); console.log(“fen actualizado, datos del backend update—->”, this.data.code); this.shellService.processFen(this.estado).subscribe((data)=>{ this.data = data; console.log(“cambiado estado fen, data del backend process—->”, this.data.code); […]