docgeni / docgeni

📖 A modern, powerful and out of the box documentation generator for Angular components lib and markdown docs.(现代化的、强大的、开箱即用的 Angular 组件文档生成工具)

Home Page:https://docgeni.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

the type identification of attributes should be more precise

minlovehua opened this issue · comments

属性类型识别不够精准,比如:
 @Input() thyMinDate: Date | number  的类型识别成了 any 。 --- 应该识别成 Date | number  才对。
 @Input() thyPlaceHolder: string | string[];  的类型识别成了  string | {} ,数组类型会被识别成 {} 。 --- 应该识别成 string | string[] 才对。
 

这种情况,
对于组件或指令来说,目前可以手动给属性标记 @type Date | number 可以解决。
但是对于一些普通的class,比如 ngx-tethys 中的 ThyGuiderConfig 类,它的属性:
 hintClass?: string | string[];  类型会识别成  string | {} ,手动标记  @type string | string[] 后在API文档中也没有生效,还是展示了string | {} 。

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.