parameter implicitly has an 'any' type

Specify the type: (callback:any) => { } for example.


First, to make typescript tolerate parameters without declaring their type, edit the tsconfig.json

// disable this rule:
// "strict": true,

// enable this rule:
"noImplicitAny": false

Second, install the tslint npm package as a prerequisite for the tslint vs code extension

npm install -g tslint

Third, install the tslint vs code extension


** I wouldn't want to modify the config file and dumb down typescript !!

This code was throwing me error:

  onDelete(todo) {
    console.log('delete')
    this.deleteTodo.emit(todo)   
  }

I fixed mine with adding an "any" type:

  onDelete(todo: any) {
    console.log('delete')
  this.deleteTodo.emit(todo)   
  }

I ended up here with the following error. This is the first search result on Bing, so, putting my solution if it helps someone.

Parameter 'onPerfEntry' implicitly has an 'any' type. TS7006

I solved it like this.

Before

const reportWebVitals = onPerfEntry  => {

After

const reportWebVitals = (onPerfEntry : any) => {

I understand its a simple thing but for a beginner like myself, this took a while for me to figure out.