Skip to content

Commit dd9b3b4

Browse files
committed
docs(typings): don't emit @Private members during the d.ts generation
Some of our class/interface members are "package private". Typescript doesn't have this concept, so we need to hide them via the @Private doc annotation. Closes angular#4262 Closes angular#4264
1 parent 283415b commit dd9b3b4

File tree

1 file changed

+2
-0
lines changed
  • docs/typescript-definition-package/processors

1 file changed

+2
-0
lines changed

docs/typescript-definition-package/processors/code_gen.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ DtsSerializer.prototype = {
4949
},
5050

5151
member: function(buffer, ast) {
52+
if (ast.private) return;
53+
5254
buffer.push('\n');
5355
this.comment(buffer, ast.content);
5456

0 commit comments

Comments
 (0)