chore(docs): remove private members from angular2.d.ts

This commit is contained in:
Alex Eagle 2015-06-02 16:02:34 -07:00
parent f543834be9
commit f303f0c17a
2 changed files with 5 additions and 4 deletions

View File

@ -22,7 +22,7 @@ module.exports = function readTypeScriptModules(tsParser, readFilesProcessor, mo
// The base path from which to load the source files // The base path from which to load the source files
basePath: '.', basePath: '.',
// We can ignore members of classes that are private // We can ignore members of classes that are private
hidePrivateMembers: false, hidePrivateMembers: true,
// We can sort class members alphabetically // We can sort class members alphabetically
sortClassMembers: true, sortClassMembers: true,
// We can provide a collection of strings or regexes to ignore exports whose export names match // We can provide a collection of strings or regexes to ignore exports whose export names match

View File

@ -1,7 +1,8 @@
{%- macro commentBlock(doc, level) -%} {%- macro commentBlock(doc, level) -%}
{%- if doc.content | trim %} {%- if doc.content | trim %}
{% if level > 1 %}{$ '/**' | indent(level-1, true) | replace(r/\n$/, "") $}{% else %}/**{% endif %} {% if level > 1 %}{$ '/**' | indent(level-1, true) | replace(r/\n$/, "") $}{% else %}/**{% endif %}
{$ doc.content | replace(r/^/gm, "* ") | indent(level, true) | replace(r/\n$/, "") $} {$ doc.content | trim | replace(r/^/gm, "* ") | indent(level, true) | replace(r/\n$/, "") $}
{$ '*/' | indent(level, true) | replace(r/\n$/, "") $}{% endif -%} {$ '*/' | indent(level, true) | replace(r/\n$/, "") $}{% endif -%}
{%- endmacro -%} {%- endmacro -%}
@ -15,7 +16,6 @@
// Please do not create manual edits or send pull requests // Please do not create manual edits or send pull requests
// modifying this file. // 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 $}" {
@ -37,7 +37,8 @@ declare module "{$ module.id $}" {
{%- 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 %}
} }