Hello, there!
After a while without new posts, I decided to come back with a really useful tip to simplify your code and reduce repetition.
Have ...
For further actions, you may consider blocking this person and/or reporting abuse
You can do much better, read more about
jsconfig and tsconfig
With tsconfig paths ?
you can use decorators also you need to import files in your index.{js,ts}
watch this: youtube.com/shorts/WpgZKBtW_t8?fea...
thaaanks
Learn on your own!
oh c'mon 😂
Is Dev.to your app to say a comment like this ¯\(ツ)/¯
Be little bit more clear
¯\(ツ)/¯
You can shorten the path with that, but this is not about that.
You can make it much better
I use Typescript all the time and in my tsconfig I set my paths
but in my application i have to use
tsconfig-paths package
so if i want to import files from controllers i do
resources
npmjs.com/package/tsconfig-paths
typescriptlang.org/docs/handbook/m...
stackoverflow.com/questions/432817...
correct me if I missed something
neat & clean 🤓
How does this affect treeshaking though?