↧
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 ArticleHow 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