docs: def register(self, event_type: str,
                   **data_detail: Any) -> Callable[[AsyncCallback], AsyncCallback]:
          """Decorator to apply the add() method to a function."""
          def decorator(func: AsyncCallback) -> AsyncCallback:
              self.add(func, event_type, **data_detail)
              return func
          return decorator