MethodDecorator type

A dual-mode method decorator: called as (target, propertyKey, descriptor) by legacy (experimentalDecorators) TypeScript and as (value, context) by standard (TC39) decorators.

Use isStandardDecorator() on the second argument to tell the two apart.

Signature:

export type MethodDecorator = (target: any, context: any, descriptor?: TypedPropertyDescriptor<(...args: any[]) => any>) => any;

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.