chore(docs): Improve whitespace and semicolons in angular2.d.ts
This commit is contained in:
parent
0a0b84a07d
commit
e67b7e87b2
|
@ -10,26 +10,34 @@
|
||||||
// Definitions by: angular team <https://github.com/angular/>
|
// Definitions by: angular team <https://github.com/angular/>
|
||||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
// 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 %}
|
{% for module in doc.modules %}
|
||||||
{$ commentBlock(module, 1) $}
|
{$ commentBlock(module, 1) $}
|
||||||
declare module "{$ module.id $}" {
|
declare module "{$ module.id $}" {
|
||||||
|
|
||||||
{% for export in module.exports -%}
|
{%- for export in module.exports -%}
|
||||||
{$ commentBlock(export, 3) $}
|
{%- if export.content -%}
|
||||||
|
{$ commentBlock(export, 3) $}
|
||||||
|
{%- endif %}
|
||||||
{$ export.docType $} {$ export.name $}
|
{$ export.docType $} {$ export.name $}
|
||||||
{%- if export.docType == 'class' or export.docType == 'interface' %} {
|
{%- if export.docType == 'class' or export.docType == 'interface' %} {
|
||||||
{% for member in export.members -%}
|
{%- for member in export.members -%}
|
||||||
{$ commentBlock(member, 5) $}
|
{$ commentBlock(member, 5) $}
|
||||||
{$ member.name $}
|
{$ member.name $}
|
||||||
{%- if member.parameters %}({% for param in member.parameters %}{$ param $}{% if not loop.last %}, {% endif %}{% endfor %}){%- endif %}
|
{%- if member.parameters %}({% for param in member.parameters %}{$ param $}{% if not loop.last %}, {% endif %}{% endfor %}){%- endif %}
|
||||||
{%- if member.returnType %} : {$ member.returnType $} {% endif %}
|
{%- if member.returnType %}: {$ member.returnType $}{% endif -%}
|
||||||
{% endfor %}
|
;
|
||||||
|
{%- endfor %}
|
||||||
}
|
}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{% if export.parameters %}({% for param in export.parameters %}{$ param $}{% if not loop.last %}, {% endif %}{% endfor %}){%- endif %}
|
{% if export.parameters %}({% for param in export.parameters %}{$ param $}{% if not loop.last %}, {% endif %}{% endfor %}){%- endif %}
|
||||||
{%- if export.returnType %} : {$ export.returnType $} {% endif -%}
|
{%- if export.returnType %} : {$ export.returnType $} {% endif -%}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue