TypeScript Property Decorators

In the TypeScript course, the code in the Property Decorators section does not work for me. I have confirmed that the MinLength function does get called and that the return statement within it also gets called. I’ve placed console.log statements in these sections and they do get displayed. However, the get() and set() code inside of the PropertyDescriptor never run.

I was able to resolve this by setting useDefineForClassFields to false, based on the following issues: