Skip to content

Releases: typescript-package/descriptor

v1.0.0

14 Aug 17:12
738eadd
Compare
Choose a tag to compare

AccessorDescriptor

  • Add generic C - configurable and E - enumerable to CommonDescriptor.
  • Change the generic names Object to O, PropertyName to K, Value to V and add C, and E in the AccessorDescriptor.
  • Check get and set against function type in AccessorDescriptor.guard() static method.
  • Add static create() method to create a new instance of AccessorDescriptor.
  • Change the param onGuard to onValidate in define static method in AccessorDescriptor.

DataDescriptor

  • Change the generic type variable Value to V, and add O object, K object key C, E, and W.
  • Add static create() method to create a new instance of DataDescriptor.
  • Add onValidate param in the constructor to validate the data descriptor.

Descriptor

  • Change the generic type variable Value to V, Object to O object, PropertyName to K object key, and add C, E, and W.
  • Add static create() method to create a new instance of Descriptor.
  • Add generic type variables to static define() , defineAccessor(), defineData(), and guard() methods.

What's Changed

New Contributors

Full Changelog: https://github.com/typescript-package/descriptor/commits/v1.0.0