Quantcast
Channel: How to extend class type with decorator - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by Guerric P for How to extend class type with decorator

$
0
0

The answer is in the TypeScript docs of the Class decorators:

// Note that the decorator _does not_ change the TypeScript type// and so the new property `reportingURL` is not known// to the type system:bug.reportingURL;Property 'reportingURL' does not exist on type 'BugReport'.

Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>