[TypeScript] Keep prompting: Unable to redeclare block scope variables
Problem description: When writing ts code in VSCode, after writing and saving, through tsc file name.ts compilation, you will see a red wavy line under the variable name, indicating that block scope variables cannot be redeclared.