Skip to main content
OpDecorator<T> = (value, context) => T | void & (target, propertyKey, descriptor) => TypedPropertyDescriptor<T> | void
Helper type for decorators This represents a decorator function that can be used with both legacy and Stage 3 decorators. For Stage 3 decorators: target: The function being decorated (T) context: MethodDecoratorContext For legacy decorators: target: The prototype (instance methods) or constructor (static methods) propertyKey: The method name descriptor: The property descriptor containing the method

Type Parameters

extends (...args) => any
Last modified on September 30, 2026