builder-pattern icon indicating copy to clipboard operation
builder-pattern copied to clipboard

Support for collections

Open Senthil-Sivanath opened this issue 3 years ago • 0 comments

Exposing additional methods for collections would be helpful, for example in the Type class at present we have setter for name, properties and it would be useful if we can have addItem(key, property);

I tried adding a manual method inside Type class but it wasn't able to accept a object built out of builder lib. Found it strange.

export class Type {
    
    name: string;
    properties: Map<String, Property> = new Map<String, Property>();
export class Property {
    name: string;
}

Senthil-Sivanath avatar Oct 17 '22 15:10 Senthil-Sivanath