def listen(*event_names: str):
    """
    Decorator to indicate that the decorated method should listen for custom events.
    It can be called using `flask_meld.emit`. Keyword arguments from `flask_meld.emit`
    will be passed as keyword arguments to the decorated method.

    Params:
        *event_names (str): One or more event names to listen for.
    """
    def dec(func):
        func._meld_event_names = event_names
        return func
    return dec