Skip to content

stamps to implement #1

@koresar

Description

@koresar

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions