stampit-org / stamp

Stamps - better OOP model
https://stampit.js.org
MIT License
25 stars 3 forks source link

@stamp/it Add another non-spec metadata - "name" to change factory name #49

Closed koresar closed 5 years ago

koresar commented 5 years ago

Proposal details: https://github.com/stampit-org/stamp-specification/issues/121

TL;DR:

const HaveName = stampit({
  name: "Superman"
});

HaveName.name === "Superman"  // instead of the default "Stamp"

Sibling PR: https://github.com/stampit-org/stampit/pull/338