~/talk

Discover the power of decorators in TypeScript

Talkat ngVikings 2019 · 2019-05-27..05-28· [typescript]
slides:none on file

Shows how to create real TypeScript decorators: enable experimentalDecorators in tsconfig, write a decorator factory that returns a function, and use the property descriptor (value) to wrap or replace a method. Demonstrates a parameter decorator (validateCountry) that stores indexes in metadata and a method decorator that checks those args. Builds a small Angular CLI app (Viking demo) that runs and rejects non‑Viking countries.

AI-written summary · about

  1. 0:00Start
  2. 1:45WHAT IS A DECORATOR?
  3. 2:02TYPES OF DECORATORS AVAILABLE IN TYPESCRIPT
  4. 2:27CLASS DECORATOR
  5. 3:36HOW USE CUSTOM DECORATORS ?
  6. 4:32EVALUATION S EXECUTION PROCESS
  7. 5:12DECORATOR FACTORY
  8. 6:26PROPERTY DESCRIPTOR
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.