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.