DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
TypeScript Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
hard
TypeScript
What happens when a decorator function is written with the legacy 3-argument (target, propertyKey, descriptor) signature under DEFAULT TypeScript settings (no experimentalDecorators)?
A
It works identically to the 2-argument version
B
It fails to compile, with an error explaining the runtime will invoke it with 2 arguments, not 3
C
It silently ignores the extra argument
D
It only fails at runtime, not at compile time
Check Answer