Working with environment variables in TypeScript?
DotEnv can be tricky with types.π΅βπ«π΅βπ«
Wrote a step-by-step guide to make it smooth and secure in any TypeScript project.
Covers type safety, env.d.ts, interface Merging and best practices.
πBlog: https://t.co/z7mVC1YGkz
Stumbled upon Declaration mering in typescript
thanks to @kirat_tw who made me think from first principles.
Declaration merging is just an overwhelming name for something which is very simple.
It allows you to add more types to an existing Declaration.
more here π
This can either be declared globally or best practise is to create a index.d.ts file and declare it there.
How this works - think from first principles --->
We can add keys this way π
Custom Error Handler
I'm new to typescript (don't judge)
Ran into an error, gpt'd the error and it gave a bunch of responses, tried to understand it but failed.
After wasting 2 hours with gpt,
5 mins on STACKOVERFLOW gave a hint on how to solve!
Solved it!
π- STACKOVERFLOW
Very easy to write code now a days
It's like reading English but so much functionality
So true when people say, everyone can write code but the one who owns solutions stays a coder.
Everything is becoming easy at the same time it's tough to stay in the field.
@JavaScript π―
Want to take your terminal skills to the next level?
GitHub Copilot in the CLI is here to help explain concepts and suggest commands. https://t.co/yiNIxgQh6r
@LFashionlover @_MKNLY @immasiddtweets Yo shithead, I was talking about the educated people. Why don't you take our place in your own country oh guess what they don't need you cuz you are that useless, can't get employed in your own fucking country. Df.