Loading topic
tsconfig.json compiler options. TypeScript supports two decorator systems. They use similar @name syntax, but their function signatures and capabilities differ.2 min readtsconfig.json. This chapter focuses on choosing the decorator mode and compiling a small example correctly.1 min readtsconfig.json file. We use standard decorators, supported by TypeScript 5 and later.2 min readtsconfig.json. This chapter uses standard decorators from TypeScript 5.0 and later.2 min readtsconfig.json. This chapter uses standard decorators, supported by TypeScript 5 and later. A class decorator runs when the class is defined. It receives the class constructor and a context object. It can inspect the class2 min readexperimentalDecorators decorators.2 min readtsconfig.json options. This chapter uses standard decorators, the TypeScript 5 decorator model.2 min readtsconfig.json options. It focuses on mistakes that compile poorly, fail at runtime, or appear when code mixes standard decorators with legacy decorators.2 min readtsconfig.json options. This chapter focuses on older decorator behavior. TypeScript 5.0 introduced standard decorators, but many libraries still use the legacy experimentalDecorators mode.2 min readtsconfig.json options. This chapter focuses on how decorators attach descriptive data to classes and members. Metadata is information about code, such as a route name, validation rule, or property type.2 min read