DEV Community

Discussion on: Restructure with ease thanks to Typescript path mappings

Collapse
 
esirei profile image
Esirei

Ah... I see you use ~ for your path prefixes. Personally I use @, but I've been thinking of changing it recently since I have a @types path that clashes with the @types libraries.
Thanks.

Collapse
 
eecolor profile image
EECOLOR • Edited

For this reason we use leading slash imports. /* => src/*

Collapse
 
richarddavenport profile image
Richard Davenport

I always prefix with the project prefix, or just @app.