{#- TypeScript visitor method template

   Context variables:
   - camel_method: camelCase method name (e.g., "visitText")
   - params: parameter list (e.g., "ctx: any, text: any")
   - action_type: "skip", "continue", "preserve_html", "custom", "custom_template"
   - action_value: escaped string value (for custom)
   - action_template: template string with ${...} interpolation (for custom_template)
#}
    {{ camel_method }}({{ params }}): string | { Custom: string } {
{% if action_type == "skip" %}
        return "Skip";
{% elif action_type == "continue" %}
        return "Continue";
{% elif action_type == "preserve_html" %}
        return "PreserveHtml";
{% elif action_type == "custom" %}
        return { Custom: "{{ action_value }}" };
{% elif action_type == "custom_template" %}
{% if return_form == "bare_string" %}
        return `{{ action_template }}`;
{% else %}
        return { Custom: `{{ action_template }}` };
{% endif %}
{% endif %}
    },
