design-patterns-typescript icon indicating copy to clipboard operation
design-patterns-typescript copied to clipboard

Returned wrong attribute on Builder pattern | prototype example

Open vlaksi opened this issue 2 years ago • 1 comments

This is not only related to the typescript code samples, it is more related to the book, but I can not find where to submit that kind of issue.

Issue

Once we make attribute: result we should return this.result not this.manual . I know this is only a prototype, but still, I guess this should be applied.

image

Best, Vladislav.

vlaksi avatar Mar 25 '23 19:03 vlaksi

The manual is only a type of this.result.

vlaksi avatar Mar 26 '23 14:03 vlaksi