OpDecorator<デコレーター用のヘルパータイプ これは、レガシーおよび Stage 3 デコレーターの両方で使用できるデコレーター関数を表します。 Stage 3 デコレーターの場合: target: デコレートされる関数 (T) context: MethodDecoratorContext レガシーデコレーターの場合: target: プロトタイプ (インスタンスメソッド) またはコンストラクター (静的メソッド) propertyKey: メソッド名 descriptor: メソッドを含むプロパティ記述子T> = (value,context) =>T|void& (target,propertyKey,descriptor) =>TypedPropertyDescriptor<T> |void
タイプパラメーター
extends (...args) => any