OpDecorator<デコレータ用のヘルパータイプです。 これは、従来のデコレータと Stage 3 デコレータの両方で使用できるデコレータ関数を表します。 Stage 3 デコレータの場合: target: デコレート対象の関数 (T) context: MethodDecoratorContext 従来のデコレータの場合: target: プロトタイプ (インスタンスmethod) またはコンストラクタ (static method) propertyKey: method名 descriptor: method を含むプロパティディスクリプタ 定義場所: src/opType.ts:41T> = (value,context) =>T|void& (target,propertyKey,descriptor) =>TypedPropertyDescriptor<T> |void
型パラメーター
T
T extends (…args) => any