ae-unresolved-inheritdoc-reference
“无法解析 @inheritDoc 引用。”
备注
当 TSDoc 声明引用无法解析时会发生这种情况。例如
/**
* Some documentation that we want to inherit
*/
export function f1(): void {}
/** {@inheritDoc g1} */ // <-- we misspelled "f1"
export function f2(): void {}
// Warning: The @inheritDoc reference could not be resolved:
// The package does not have an export "g1".
如何修复
更正引用。在上面的示例中,我们将更改 f2()
的注释,如下所示
/** {@inheritDoc f1} */
export function f2(): void {}