World Congress 2026 Europe - Virtual Stage Jul 5, 2026 Session details

Interior Decorating (TypeScript Decorators)

Michael Dowden

Stop polluting your business logic with boilerplate caching and logging code. TypeScript decorators elegantly extract these cross-cutting behaviors into clean, declarative runtime functions.

Pause
Mute Enter Fullscreen
#1 about 3 min

Introduction to TypeScript decorators and their core purpose

Decorators attach declarative behaviors to code at runtime without modifying the underlying implementation.

#2 about 4 min

Implementing memoization decorators for expensive calculations

Caching reusable function results through a single decorator prevents repetitive logic from cluttering stable functions.

#3 about 4 min

Measuring function and framework performance with decorators

Wrapping code with a custom decorator automatically logs component startup and execution times directly to the browser performance tools.

#4 about 3 min

Standardizing parameter validation and logging behaviors

Implementing decorators to automatically validate null inputs and log function parameters improves code readability and reduces repetition.

#5 about 3 min

Persisting browser state through property accessor decorators

Applying decorators to getter and setter methods enables automatic state synchronization with local storage.

#6 about 4 min

Configuring and defining functional method decorators

Building a custom method decorator requires enabling experimental features in configuration and manipulating property descriptor values.

#7 about 3 min

Handling asynchronous functions inside performance decorators

Resolving asynchronous promises before ending performance timers ensures accurate execution metrics for asynchronous methods.

#8 about 3 min

Creating decorator factories for configurable runtime behavior

Wrapping a decorator in a factory function allows passing runtime configuration parameters to control execution logic.

#9 about 3 min

Decorating accessors directly for state persistence operations

Modifying object getters and setters via decorators hooks directly into local storage interactions while preserving clean variables.

#10 about 4 min

Implementing class decorators for framework lifecycle monitoring

Creating a configurable class decorator allows automatic injection of performance markers across multiple framework lifecycle events.

#11 about 2 min

Reviewing practical decorator patterns and code project repository

Analyzing standard decorator templates highlights how reusable wrappers simplify complex operational logic across typical codebases.

Matching moments

2:47 min

Why TypeScript decorators prevent effective tree shaking

Stephen Cooper Stephen Cooper · WWC 2025

4:18 min

Core design principles and features of TypeScript

Lars Hupel · WWC 2022

3:08 min

Introduction to basic TypeScript capabilities and type annotations

Jens Claes · WWC 2023

2:11 min

Comparing JavaScript variables to TypeScript type annotations

Peter Kröner Peter Kröner · WWC 2022

9:46 min

Questions on architecture typing and team organization

Trishul Goel · JS Congress

2:51 min

Deciding when to adopt or avoid TypeScript

Rob Richardson · LIVE

Upcoming sessions on this topic

Open session

World Congress 2026 North America

Architecting AI in Angular: WebMCP, A2UI, and the Agent Experience

Ankita Sood

Sr. Principal Engineer @ Secureworks | Angular GDE

Ankita Sood
Open session

World Congress 2026 North America

Fast by Design: A Masterclass in High-Performance Web Engineering

Aaron Grogg

Senior web developer, committed to improving the user experience by improving web performance

Aaron Grogg
Open session

World Congress 2026 North America

How to generate business value through performance optimizations

Nikolai Sidiropulo

Software Engineer at Meta

Nikolai Sidiropulo
Open session

World Congress 2026 North America

Offloading IoT State: Solving the Memory Crisis on Legacy Hardware

Pravin Nagare

Senior Software Engineer, Roku

Pravin Nagare
Open session

World Congress 2026 North America

public void saveMoney(AI): The Developer's Guide to Unit Economics

Hrushikesh Pokala

Senior Software Engineer Lead at Equifax

Hrushikesh Pokala
Open session

World Congress 2026 North America

When Humans Stop Writing Code: Rethinking Languages, Compilers, and Responsibility

Simon Auer

Organizer of flutter vienna meetup and CEO of marqably

Simon Auer