builder-pattern
builder-pattern copied to clipboard
Builder pattern for Typescript using ES6 proxy
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...
I really appreciate the idea of this API. Thanks. The problem is that the API doesn't work on IE11 browser because IE11 doesn't support ES6 proxy. It should be a...
Hi. Thanks for this great library. I've been using it for my side project, and encountered a problem. My class looks like: ``` export class MyClass { id:number; public method(){};...
- to validate build result
``` class Test { property!: number; method(v: number) { return null; } } //before Builder(Test).property(1).method(() => null).build(); // ok // after Builder(Test).property(1).build(); // we don't have method in builder type...
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2. Release notes Sourced from json5's releases. v1.0.2 Fix: Properties with the name __proto__ are added to objects and arrays. (#199) This also fixes a...
I would like this library to support initialization of a `StrictBuilder` with an partially initialized object, requiring the rest as the normal strictness enforces.
Deep clone / copy nested structures instead of performing a shallow copy to guarantee immutability.