TypeScript error: 7006

        Error message:

Parameter 'req' implicitly has an 'any' type.ts(7006)

        After the TypeScript is written, when using the tsc command to convert to js, ​​the red wavy line below the parameters prompts 7006 error, which does not affect the generation of the final code. To solve this error prompt, you need to manually add the any type, such as my code:

function(req,res,next){
......
}

       change into:

function(req:any,res:any,next:any){
......
}

 

Guess you like

Origin blog.csdn.net/qq_41061437/article/details/112882857