преобразовать JavaScript в TypeScript Online Converter
import path from 'path';
Annoying Anaconda
import path from 'path';
1. Add tsconfig.json file to project
2. Integrate with a build tool
3. Change all .js files to .ts files
4. Check for any errors