From e67b7e87b2f5ae669ea386f28860eaa12d02d179 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Tue, 2 Jun 2015 14:48:11 -0700 Subject: [PATCH] chore(docs): Improve whitespace and semicolons in angular2.d.ts --- .../templates/type-definition.template.html | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/docs/dgeni-package/templates/type-definition.template.html b/docs/dgeni-package/templates/type-definition.template.html index aeeec36c4a..acd9a1d541 100644 --- a/docs/dgeni-package/templates/type-definition.template.html +++ b/docs/dgeni-package/templates/type-definition.template.html @@ -10,26 +10,34 @@ // Definitions by: angular team // 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 %} }