It can be useful if we want to extend a class with it.
const BuildedClass = ObjectBuilder
.create()
/* .with() */
.buildClass();
const myInstance = new BuildedClass();
class MyClass extends BuildedClass {}
It should also give a way to set the decorators.
ObjectBuilder
.create()
/* .with() */
.buildClass({decorators: {["key"]: [/*decorators*/]});
or
ClassBuilder
.create()
.with("key", () => 0, {decorators: [/*decorators*/]});
Note: it is kinda already possible: by overriding the keys and calling the decorators functions.
It can be useful if we want to extend a class with it.
It should also give a way to set the decorators.
or