TypeScript TypeScript Decorators: Property Decorators This post takes an in-depth look at property decorators. It examines their signature, provides sample usage, and exposes a common antipattern. Reading the previous posts in the series is encouraged but not necessary.
TypeScript TypeScript Decorators: Parameter Decorators This post takes an in-depth look at parameter decorators. It examines their signature and provides a couple of useful examples. Reading the previous posts in the series is encouraged but not necessary.
TypeScript TypeScript Decorators: Reflection This post takes a cursory look at reflection with TypeScript. Its primary focus is how reflection can be used with TypeScript decorators. It introduces Reflect, reflect-metadata, and some miscellaneous related components.
TypeScript TypeScript Decorators: JavaScript Foundation This post looks at how TypeScript compiles decorators. It pulls the raw JavaScript from the compiler and breaks down the result. It has basic decorator examples of each type to examine the JavaScript output.
TypeScript TypeScript Decorators: Introduction This post serves as introduction to TypeScript decorators. It looks at basic decorators, decorator factories, and decorator composition. You should have some familiarity with TypeScript and some object-oriented programming experience.
NPM NPM Lifecycle Stages: A Study in Stream Editors NPM has created a solid set of discrete stages that describe every state a package might be in. Getting programmatic access to that set is more convoluted than it sounds.