TypeScript has established itself as the go-to tool for building scalable, maintainable, and efficient applications. Its type system is not only ro...
For further actions, you may consider blocking this person and/or reporting abuse
Great article
Thanks for the kind wordsπ€
Thanks for sharing
No problem at all. Hope it adds value!ππ
Great series!
You're welcome! Glad you found it useful.ππ€
github.com/ts-essentials/ts-essent...
Amazing!
Thanks for checking it outππ€
Nice article!! I have a question. I'm still figuring out the usefullness of Type Guards, which in principle seems fine, but in practice it seems awkward. The "typeof" operator have been out in the field in many languages and the examples I have seen both in your article and in the TypeScript documentation doesn't explain the need for that Type Guard.
For example: the isString function if the type guard ensures the value is string then why not just return true? At the same time it defeats the purpose to have a function that always returns true. And what would be the behaviour if I call the function with a number?
Just for the sake of understanding I created a test which worked the same with the type guard and without it, so, I can't spot the value of having such syntax.
thanks for sharing a great article.
Thanks for taking the time to read it!π€
Great! Thanks!
Good!
Very creative and useful article. Thanks bro....