Type alias GenericMethodDecorator<F>

GenericMethodDecorator<F extends AnyFunction>: {}

A decorator function that supports both TC39 and "legacy" decorator protocols

Type Parameters

  • F extends AnyFunction

    the type of method this decorator can decorate. If the method doesn't conform to this type, compile-time type checks will fail.

Type declaration