code: function bindClass(target: DecoratorTarget): DecoratorTarget {
    const proto = target.prototype;
  
    Object.getOwnPropertyNames(proto).forEach((name) => {
      if (name.match(/^(on|handle)[A-Z]/)) {
        Object.defineProperty(
          proto,
          name,
          bindMethod(proto, name, Object.getOwnPropertyDescriptor(proto, name)),
        );
      }
    });
  
    return target;
  }
docs: Bind the context to all methods of the class that start with "on" or "handle".