- only(condition): ClassDecorator & MethodDecorator
Returns ClassDecorator & MethodDecorator
- only<TFunction>(target): void | TFunction
Type Parameters
- TFunction extends Function
- only<T>(target, propertyKey, descriptor): void | TypedPropertyDescriptor<T>
Parameters
- target: Object
- propertyKey: string | symbol
- descriptor: TypedPropertyDescriptor<T>
Returns void | TypedPropertyDescriptor<T>