Wanna speed up your TypeScript builds and improve your IDE's TypeScript...


Wanna speed up your TypeScript builds and improve your IDE's TypeScript language server performance?

Replace type intersections with interfaces.

Here's how:
1. Search for this: & {
2. Replace the type intersections with an interface.

Why? Because type intersections are slow.…

To be clear, Type vs Interface normally doesn't matter. This is just an edge case where it does.

In fact, I typically prefer types over interfaces.

I typically only use an interface if I need to extend.

View original on X