Type Alias: MethodDecorator<ClassPrototype, Method, Property>
MethodDecorator<
ClassPrototype,Method,Property> = (target,propertyKey,descriptor) =>TypedPropertyDescriptor<Method> |void
A method decorator typed by the class prototype and the method it decorates: it receives the prototype, the method name and its property descriptor, and returns the descriptor to use, or nothing to keep it.
Type Parameters
ClassPrototype
ClassPrototype
Method
Method
Property
Property = string | symbol
Parameters
target
ClassPrototype
propertyKey
Property
descriptor
TypedPropertyDescriptor<Method>
Returns
TypedPropertyDescriptor<Method> | void