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

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

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...

View Article


How to extend class type with decorator

I'd like to use decorators in my project. Here's what I have written:export const DetachedWindow = (options: TDetachedWindowOptions = defaultOptions) => <R extends Constructable>(Clazz: R): R...

View Article

Browsing all 2 articles
Browse latest View live


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