dgeni-packages icon indicating copy to clipboard operation
dgeni-packages copied to clipboard

extract-access depends on docType which is not available in jsdoc

Open wingedfox opened this issue 8 years ago • 1 comments

Hi,

There's a check https://github.com/angular/dgeni-packages/blob/master/jsdoc/services/transforms/extract-access.js#L24 which fails with

Illegal use of "@public" tag. You can only use this tag on the following docTypes: ['property', 'method']. Register this docType with extractAccessTransform.addDocType("js") prior to use.

Guess this is not a desired behaviour for ES* code.

wingedfox avatar Jun 19 '16 12:06 wingedfox

I got the same issue with @private tag

info: running processor: extractTagsProcessor error: Error: Illegal use of "@private" tag. You can only use this tag on the following docTypes: [ property, method ]. Register this docType with extractAccessTransform.addDocType("js") prior to use - doc (js)

Added mentioned workaround by @wingedfox in my dgeni configuration file.

Should that be fixed as part of dgeni package itself?

Aashima89 avatar Jul 28 '16 17:07 Aashima89