DEV Community

loading...

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
richarddavenport profile image
Richard Davenport

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

Collapse
eecolor profile image
EECOLOR

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