diff options
Diffstat (limited to 'cli/tests/testdata/doc')
| -rw-r--r-- | cli/tests/testdata/doc/referenced_private_types_lint.out | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/cli/tests/testdata/doc/referenced_private_types_lint.out b/cli/tests/testdata/doc/referenced_private_types_lint.out index 54f225059..328435cd7 100644 --- a/cli/tests/testdata/doc/referenced_private_types_lint.out +++ b/cli/tests/testdata/doc/referenced_private_types_lint.out @@ -1,8 +1,28 @@ -Missing JSDoc comment. - at file:///[WILDCARD]/referenced_private_types.ts:5:1 +error[missing-jsdoc]: exported symbol is missing JSDoc documentation + --> [WILDCARD]:5:1 + | +5 | export class MyClass { + | ^ + + +error[private-type-ref]: public type 'MyClass.prototype.prop' references private type 'MyInterface' + --> [WILDCARD]:6:3 + | +6 | prop: MyInterface = {}; + | ^ + = hint: make the referenced type public or remove the reference + | +1 | interface MyInterface { + | - this is the referenced type + + info: to ensure documentation is complete all types that are exposed in the public API must be public + + +error[missing-jsdoc]: exported symbol is missing JSDoc documentation + --> [WILDCARD]:6:3 + | +6 | prop: MyInterface = {}; + | ^ -Type 'MyClass.prototype.prop' references type 'MyInterface' which is not exported from a root module. -Missing JSDoc comment. - at file:///[WILDCARD]/referenced_private_types.ts:6:3 error: Found 3 documentation lint errors. |
