Plain Text by Panaxeo
Blog
•
Blog •
We type. Mostly code.
Sometimes words. Read on.
Have strong expressions.
Who wouldn’t want to use strongly typed TypeScript code in their Node.js Express app? Turns out it might be a little tricky, especially when trying to define routes or request and response objects.
But worry not, there is of course a way!
Typescript is the only way.
How to get read-only arrays in TypeScript? Defining an array as a const is not enough, it prevents reassignment of its value but can still be modified.
Your browser sucks.
New CSS features are appearing rapidly, and browser support always lags behind. For example the new Nesting Feature. We’ve always wanted it, but no browser supports it right now.