In this article, I discuss a simple yet effective technique in TypeScript to avoid redundancy when defining union types and corresponding arrays. By using the as const assertion and typeof, you can consolidate the list of values in one place, making your code more maintainable and less error-prone.
To use an authenticated proxy with fetch in node, you need to register an undici proxy agent as a global dispatcher.
A method that maps only the values of a javascript object, which is a set of key/value pairs, like...
In the next project created with yarn, lint did not work, so I investigated the cause and solved the problem.