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

タイプパラメーター

extends (...args) => any
最終更新日 2026年9月30日