chore(docs): Improve whitespace and semicolons in angular2.d.ts

This commit is contained in:
Alex Eagle 2015-06-02 14:48:11 -07:00
parent 0a0b84a07d
commit e67b7e87b2
1 changed files with 14 additions and 6 deletions

View File

@ -10,26 +10,34 @@
// Definitions by: angular team <https://github.com/angular/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
// ***********************************************************
// This file is generated by the Angular build process.
// Please do not create manual edits or send pull requests
// modifying this file.
// ***********************************************************
{% for module in doc.modules %}
{$ commentBlock(module, 1) $}
declare module "{$ module.id $}" {
{% for export in module.exports -%}
{$ commentBlock(export, 3) $}
{%- for export in module.exports -%}
{%- if export.content -%}
{$ commentBlock(export, 3) $}
{%- endif %}
{$ export.docType $} {$ export.name $}
{%- if export.docType == 'class' or export.docType == 'interface' %} {
{% for member in export.members -%}
{%- for member in export.members -%}
{$ commentBlock(member, 5) $}
{$ member.name $}
{%- if member.parameters %}({% for param in member.parameters %}{$ param $}{% if not loop.last %}, {% endif %}{% endfor %}){%- endif %}
{%- if member.returnType %} : {$ member.returnType $} {% endif %}
{% endfor %}
{%- if member.returnType %}: {$ member.returnType $}{% endif -%}
;
{%- endfor %}
}
{%- else -%}
{% if export.parameters %}({% for param in export.parameters %}{$ param $}{% if not loop.last %}, {% endif %}{% endfor %}){%- endif %}
{%- if export.returnType %} : {$ export.returnType $} {% endif -%}
{% endif %}
{% endfor %}
}