Dynamic properties Intellisense troubles (defineProperty)


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


Please sign in to leave a comment.