stamp-utils icon indicating copy to clipboard operation
stamp-utils copied to clipboard

stamps to implement

Open koresar opened this issue 8 years ago • 5 comments

The following are utility stamp good to have implemented.

  • [ ] selfAware - the .getStamp() on object instances.
  • [ ] ctor/instanceOf - add constructor propertiy for instanceof operator to work.
  • [ ] mutate (?) - will mutate the given agument, like mutatingStamp(obj) returns the obj but decorated with new data according to stamp descriptor: mutatingStamp(obj) === obj
  • [ ] cloneable - adds .clone() to object instances.
  • [ ] namespaced - a stamp with static property .nest():
var twoNested = nestable.nest({ db: dbStamp }).nest({ queue: queueStamp });
var instance = twoNested({ db: databaseConfiguration, queue: queueConfiguration });
  • [ ] methods
  • [ ] props
  • [ ] deepProps
  • [ ] staticProps
  • [ ] deepStaticProps
  • [ ] convertConstructor - should work with both ES5 and ES6 classes.
  • [ ] overrides - takes stamp first argument (options) and assigns to instances as regular properties.

koresar avatar Oct 04 '15 13:10 koresar