When I use IntelliJ IDEA to develop a web application in TypeScript, the autocomplete feature suggests imports from other files within my project like this:
import {Symbol} from '@/components/Symbol';
I am curious about the significance of the @
symbol here. Is there any specific documentation that explains its usage?
It's worth noting that this behavior occurs when I am importing files from the same project. Imports from npm packages typically only require the package name (which may sometimes start with a @
).
I have searched through the TypeScript Module Resolution documentation but haven't found any mention of the @
symbol. Furthermore, when conducting searches on Google or Stack Overflow using terms like typescript @ import
, it seems that the @
character is often ignored in the query...
Edit: This context pertains to a Next.js project that was initially set up using npx create-next-app
.