{{> comment}}

{{#if typeParameters}}
    <h4 class="tsd-type-parameters-title">Type parameters</h4>
    {{> typeParameters}}
{{/if}}

{{#if parameters}}
    <h4 class="tsd-parameters-title">Parameters</h4>
    <ul class="tsd-parameters">
        {{#each parameters}}
            <li>
                <h5>{{#compact}}
                    {{#if flags.isRest}}<span class="tsd-signature-symbol">...</span>{{/if}}
                    {{name}}{{#each flags}}
                    &nbsp;<span class="tsd-flag ts-flag{{this}}">{{this}}</span>
                    {{/each}}:&nbsp;
                    {{#with type}}{{>type}}{{/with}}
                    {{#if defaultValue}}
                        <span class="tsd-signature-symbol">
                        &nbsp;=&nbsp;
                        {{defaultValue}}
                        </span>
                    {{/if}}
                {{/compact}}</h5>

                {{#if comment}}
                    : {{> comment}}
                {{/if}}

                {{#if type.declaration}}
                    {{#with type.declaration}}
                        {{> parameter}}
                    {{/with}}
                {{/if}}
            </li>
        {{/each}}
    </ul>
{{/if}}

{{#if type}}
    <div class="tsd-returns">
    <h4 class="tsd-returns-title">Returns {{#with type}}{{>type}}{{/with}}</h4>

    {{#if comment.returns}}
        : {{#markdown}}{{{comment.returns}}}{{/markdown}}
    {{/if}}

    {{#if type.declaration}}
        {{#with type.declaration}}
            {{> parameter}}
        {{/with}}
    {{/if}}
    </div>
{{/if}}

{{#unless hideSources}}
    <hr>
    {{> member.sources}}
{{/unless}}