Repository navigation
Closed
Description
Overview of the issue
Nested properties in an interface are only documented as literal type without listing the nested properties and their documentation.
Operating System, Node.js, npm, compodoc version(s)
Windows 10, Node.js 10.14.2, npm 6.4.1, compodoc 1.1.8.
TypeScript version used by Compodoc : 2.9.1
TypeScript version of current project : 3.2.2
Angular configuration, a package.json file in the root folder
{
"name": "feedback-ui-v2",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"precommit-msg": "echo 'Pre-commit - generating compodoc...' && exit 0",
"compodoc": "npx compodoc -p src/tsconfig.app.json",
"compodoc-git": "git add documentation && git add -u documentation"
},
"pre-commit": [
"precommit-msg",
"compodoc",
"compodoc-git"
],
"private": true,
"dependencies": {
"@angular/animations": "~7.2.0",
"@angular/cdk": "^7.3.3",
"@angular/common": "~7.2.0",
"@angular/compiler": "~7.2.0",
"@angular/core": "~7.2.0",
"@angular/forms": "~7.2.0",
"@angular/platform-browser": "~7.2.0",
"@angular/platform-browser-dynamic": "~7.2.0",
"@angular/router": "~7.2.0",
"core-js": "^2.5.4",
"rxjs": "~6.3.3",
"tslib": "^1.9.0",
"zone.js": "~0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.13.0",
"@angular/cli": "~7.3.1",
"@angular/compiler-cli": "~7.2.0",
"@angular/language-service": "~7.2.0",
"@compodoc/compodoc": "^1.1.8",
"@types/jasmine": "~2.8.8",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~8.9.4",
"codelyzer": "~4.5.0",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.1.1",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"pre-commit": "^1.2.2",
"protractor": "~5.4.0",
"ts-node": "~7.0.0",
"tslint": "~5.11.0",
"typescript": "~3.2.2"
}
}
Compodoc installed globally or locally ?
Locally.
If possible sourcecode of the file where it breaks
/**
* Defines config JSON structure.
*
* See [AppConfigService]{@link AppConfigService}.
*/
export interface AppConfig {
/**
* Enable/disable console logging. // TODO implement logging.
*/
logging: boolean;
/**
* Different delays used in the app to improve UX.
*/
delay: {
/**
* Delay between clicking on an option and going to next question.
*/
questionAnsweredMs: number;
/**
* Delay between completing the feedback form and automatic restart of the form to let next user do it.
*/
restartAfterCompletedMs: number;
/**
* Delay before automatic form restart when user is inactive.
*/
restartTimoutMs: number;
};
}
If possible your terminal logs before the error
Terminal does not show any errors.
Motivation for or Use Case
Documentation should include the nested properties, too. In my case, delay is only described as literal type and the three nested properties (questionAnsweredMs, restartAfterCompletedMs, restartTimoutMs) are not listed anywhere at all.
Reproduce the error
- Create and document with a nested property, such as:
nestedProp: {a: number; b: number} - Generate compodoc and see the result.
Related issues
Not aware of any.

Activity
[-]Nested properties in an interface are not properly documented[/-][+][BUG] Nested properties in an interface are not properly documented[/+][-][BUG] Nested properties in an interface are not properly documented[/-][+][FEATURE] Nested properties in an interface are not properly documented[/+]stale commentedon Sep 30, 2019
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
stale commentedon Oct 7, 2019
This issue has been automatically closed because it has not had recent activity. Please file a new issue if you are encountering a similar or related problem. Thank you for your contributions.
lock commentedon Dec 6, 2019
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. Why locking ? Having issues with the most up-to-date context.
feat(interface): render nested type literal properties