Closed stkevintan closed 5 years ago
This line is deleting the property and the next line is creating a new property with the dependency injected into the Class
@CKGrafico I know you intend to delete the property and readd it with a custom getter.
However, I think Reflect.deleteProperty
is a function not an object, it cannot be invoked by [key]
The right way should be:
Reflect.deleteProperty(target, key)
Am I right ?
Which version of typescript are you using? This is working in all our projects, can you download the examples and test them?
check with he new version
Thx, the ts 3.5 show no error of your form.
Yeah! thanks for your patience and sorry for the bug :)
https://github.com/CKGrafico/inversify-props/blob/9d0313987d3364b2833591acffd39195630b2bc0/src/lib/helpers.ts#L28
I copy this line to my file but got a error: