Avatar ·

Warning about experimental decorators in TypeScript

Hi everyone! I'm new to TypeScript and trying to use decorators to add logging to my class. I have Visual Studio Code installed, and I created a simple project with a tsconfig.json file. Here's my code: ```typescript function log(target: any, propertyKey: string, descriptor: PropertyDescriptor) { const originalMethod = descriptor.value; descriptor.value = function(...args: any[]) { console.log(`Method ${propertyKey} called with arguments:`, args); return originalMethod.apply(this, args); }; return descriptor; } class Calculator { @log add(a: number, b: number): number { return a + b; } } const calc = new Calculator(); calc.add(2, 3); ``` When compiling, I get a warning: "Experimental support for d