From dd9b3b4ed0675c682759bb9a2b6dc1e37f78057a Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 18 Sep 2015 15:50:43 -0700 Subject: [PATCH] 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 #4262 Closes #4264 --- docs/typescript-definition-package/processors/code_gen.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/typescript-definition-package/processors/code_gen.js b/docs/typescript-definition-package/processors/code_gen.js index a55d4b9636..0862783b26 100644 --- a/docs/typescript-definition-package/processors/code_gen.js +++ b/docs/typescript-definition-package/processors/code_gen.js @@ -49,6 +49,8 @@ DtsSerializer.prototype = { }, member: function(buffer, ast) { + if (ast.private) return; + buffer.push('\n'); this.comment(buffer, ast.content);