A novel technique for creating ergonomic and tree-shakable TypeScript libraries In this article, I will present an interesting technique for creating tree-shakable TypeScript libraries without compromising user experience. Here's the high-level overview: Users consume our library's API through a single entry point (think Zod).This allows them to use techniques such as method chaining, builder patt
![A novel technique for creating ergonomic and tree-shakable TypeScript libraries | SoftwareMill](https://cdn-ak-scissors.b.st-hatena.com/image/square/3a332f14c4a7e013b88a888b981f05b1392e3e5f/height=288;version=1;width=512/https%3A%2F%2Fsoftwaremill.com%2Fuser%2Fpages%2Fblog%2F87.a-novel-technique-for-creating-ergonomic-and-tree-shakable-typescript-libraries%2Fm956nfrp1gzsswk.jpg%3Fg-1f9f3c69)