Skip to content

Commit f303f0c

Browse files
committed
chore(docs): remove private members from angular2.d.ts
1 parent f543834 commit f303f0c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/dgeni-package/processors/readTypeScriptModules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = function readTypeScriptModules(tsParser, readFilesProcessor, mo
2222
// The base path from which to load the source files
2323
basePath: '.',
2424
// We can ignore members of classes that are private
25-
hidePrivateMembers: false,
25+
hidePrivateMembers: true,
2626
// We can sort class members alphabetically
2727
sortClassMembers: true,
2828
// We can provide a collection of strings or regexes to ignore exports whose export names match

docs/dgeni-package/templates/type-definition.template.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{%- macro commentBlock(doc, level) -%}
22
{%- if doc.content | trim %}
3+
34
{% if level > 1 %}{$ '/**' | indent(level-1, true) | replace(r/\n$/, "") $}{% else %}/**{% endif %}
4-
{$ doc.content | replace(r/^/gm, "* ") | indent(level, true) | replace(r/\n$/, "") $}
5+
{$ doc.content | trim | replace(r/^/gm, "* ") | indent(level, true) | replace(r/\n$/, "") $}
56
{$ '*/' | indent(level, true) | replace(r/\n$/, "") $}{% endif -%}
67
{%- endmacro -%}
78

@@ -15,7 +16,6 @@
1516
// Please do not create manual edits or send pull requests
1617
// modifying this file.
1718
// ***********************************************************
18-
1919
{% for module in doc.modules %}
2020
{$ commentBlock(module, 1) $}
2121
declare module "{$ module.id $}" {
@@ -37,7 +37,8 @@
3737
{%- else -%}
3838
{% if export.parameters %}({% for param in export.parameters %}{$ param $}{% if not loop.last %}, {% endif %}{% endfor %}){%- endif %}
3939
{%- if export.returnType %} : {$ export.returnType $} {% endif -%}
40-
{% endif %}
40+
;
41+
{%- endif %}
4142
{% endfor %}
4243
}
4344

0 commit comments

Comments
 (0)