OpDecorator<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 methodT> = (value,context) =>T|void& (target,propertyKey,descriptor) =>TypedPropertyDescriptor<T> |void
OpDecorator<T>
TypeScript SDK reference
Last modified on September 30, 2026