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일