Dynamic properties Intellisense troubles (defineProperty)

Hi!

Does Webstorm Intellisense can handle properties added dynamically (eg. with Object.defineProperty) ?

I'm trying to do an easy thing but it doesn't work. Is there any workaround for such case?

1 comment
Comment actions Permalink

It works fine in Javascript:

 

but doesn't work in Typescript as this code doesn't compile

See https://stackoverflow.com/questions/49467069/typescript-property-does-not-exist-on-type

0

Please sign in to leave a comment.