- Better handling of bound methods
- Support static methods and properties
- Support for prototype altering after class definition
- Made properties
configurable: true
For easier debugging in console, added __origInstance
to every class with private methods.
import klass from 'class-private-method-decorator'
@klass
class C {
@klass.private
p() {}
}
import { classWithPrivateMethods, privateMethod } from 'class-private-method-decorator'
@classWithPrivateMethods
class C {
@privateMethod
p() {}
}