While working recently on an NPM library built with Rollout, I noticed that the folder structure changed, and some TypeScript definition files, the .d.ts ones, weren't in the final build where they were supposed to be. After fixing this, I created an integrity checker that ensured that all TypeScript definition files were there they should… Continue reading How to ensure that TypeScript definition files are in the final build
Category: javascript
Resources, tutorials, articles about JavaScript, Node.js, Deno, TypeScript, React, Jest, Enzyme and other JavaScript-based front and back end technologies.
How micro frontends can make or break app development
Micro frontends are an architecture inspired by microservices proposing that web apps can be build and thought of as a composition of smaller apps, each one specialized in a certain feature and owned by a team that focuses in the feature offered. Since they're independent apps, this also means that they can be built using… Continue reading How micro frontends can make or break app development
How to hide JavaScript’s console.log output in Jest tests
TypeScript: make selected properties optional with Partial & Omit
When you use the utility Partial on a type, it will make all the type properties optional. Let's see how we can compose this utility with another one, Omit, to make optional only certain properties of this type. We'll finally create a utility type using TypeScript generics to apply this on any type we want.… Continue reading TypeScript: make selected properties optional with Partial & Omit