Is it possible to use the Builder Pattern so that the following would be possible?
const house1 = new HouseBuilder(HouseType.BASIC).setBasicStyle().build();
const house2 = new HouseBuilder(HouseType.ADVANCED).setAdvancedStyle().build();
Is this somehow possible where depending on the passed parameter only the specific method is callable, for instance a Basic House should not be able to call setAdvancedStyle() and so on...
Any help would be appreciated. Is there an advanced builder pattern or something better for this?