typescript - 为什么 typedoc 会忽略我的接口声明?
问题描述
type S=string|undefined;
declare global {
export interface String {
/**
* returns string between borders
* @param borderA - left border
* @param borderB - right border
* @param aIsFirst - true if borderA is first, false if is last
* @param bIsFirst - true if borderB is first, false if is last
*/
between(borderA:S, borderB:S, aIsFirst:boolean, bIsFirst:boolean):S;
}
}
typedoc 命令:typedoc --out ./documentation/ src/
它使用取自 README.md 的 HTML 生成文件夹,但在那里找不到我的界面的痕迹......
解决方案
TypeDoc 将仅记录由您的入口点之一导出的内容。如果您导出 Foo 而不是 IFoo,您将收到一个错误,指出它已使用“但未包含在文档中”...
推荐阅读
- typescript - vscode - “实现接口” -> 禁用内联导入
- python-3.x - 将参数传递给 for 循环中的视图函数(表单)以填充表单烧瓶 wtforms sqlalchemy
- drake-r-package - bind_plans 和地图转换
- angular - BehaviorSubject 未返回角度的最新值
- rstudio - R Studio 字体输出
- mysql - 删除 SQL 表中的重复条目?
- python-3.x - python中的图像压缩
- php - PHP HTTP_X_FILE_NAME 已删除,我有什么替代方案
- terraform - Terraform 的 GitHub Actions - 如何为“terraform.tfvars”文件提供 aws 凭据
- spring - eclipse 4.13.0 - 依赖库