Don’t use require to import a package with typescript

I had to use node for a project, I read some tutorial online and in almost all the sources I found that’s how they imported a dependency :

const axios = require('axios');

However my mentor was here to explain that this was an old way of importing in javascript, but it doesn’t work properly with typscript. Instead you better import this way :

import axios from 'axios';
TheTrendyBrand