{% import "macros.html" as macros %}
{%- if method.isDeprecated -%}
Deprecated
{%- endif -%} {$ method.name $}({%- if method.params.length -%}{% for parameter in method.params %}{$ parameter.name $} {%- if parameter.type %}: {$ parameter.type $}{%- endif %}{%- if not loop.last %}, {%- endif %}{% endfor %}{%- endif %}) {%- if method.type and method.type !== "void" -%} : {$ method.type $} {%- endif -%}
{%- if method.description -%} {$ method.description | marked | safe $} {%- endif -%} {%- if method.deprecated and method.deprecated !== '' -%} {$ method.deprecated | marked | safe $} {%- endif -%} {%- if method.deletionTarget -%} Deletion target: {$ method.deletionTarget $} {%- endif -%}
{%- if method.params.length -%}

Parameters:

{% for parameter in method.params %}
{$ parameter.name $} {%- if parameter.isOptional -%} ? {%- endif -%}: {$ parameter.type $} {%- if parameter.description %}

{$ parameter.description | safe $}

{%- endif %}
{% endfor %}
{%- endif -%} {%- if method.type and method.returns.description and method.type !== "void" -%}

Returns: {$ method.type $}

{$ method.returns.description | marked | safe $}

{%- endif -%}