diff --git a/src/publish.ts b/src/publish.ts index 9d150d4..4b4dab3 100644 --- a/src/publish.ts +++ b/src/publish.ts @@ -32,7 +32,7 @@ export function publish(data: TDocletDb, opts: ITemplateConfig) if (this.undocumented) { // Some doclets are marked 'undocumented', but actually have a 'comment' set. - if ((! this.comment) || (this.comment === '')) + if (opts.strictDocumentation || (! this.comment) || (this.comment === '')) { debug(`publish(): ${docletDebugInfo(this)} removed`); return true; diff --git a/src/typings/dts-jsdoc.d.ts b/src/typings/dts-jsdoc.d.ts index fa6521a..0bab2f0 100644 --- a/src/typings/dts-jsdoc.d.ts +++ b/src/typings/dts-jsdoc.d.ts @@ -17,4 +17,5 @@ declare interface ITemplateConfig { * In order not to break backward compatibility, the 'documented' generation strategy remains the default. */ generationStrategy?: ("documented" | "exported"); + strictDocumentation?: boolean; }