Apply Builder Pattern To Generate Query Filter In TypeScript

Implement an immutable and strongly typed filter builder

Sunny Sun
Better Programming
Published in
5 min readAug 31, 2021

--

Implement an immutable and strongly typed filter builder
Photo by Lindsay Henwood on Unsplash

Builder Pattern is one of GoF design pattern designed to construct objects which typically requires a long list of arguments. It allows you to create multiple different but also similar objects with the Builder class.

--

--